On Wed, 27 Aug 2003 00:38:01 +0200, frot <[EMAIL PROTECTED]> wrote:

Below the list i inserted
exactly the same DBFORMS tag as in the singe record maintenance page, but instead
of showing the record data I just skip these parts completely.... then the only thing now
seen is the insert new button.....
This procedure works..... dirty but what the hack......
a hack... but now you get a clean insert page when using a navNew button from a list page in 1.3

Tx for the tips anyway..... if you want I could publish this, uhhhmmm, dirt method :-)
well iT's in the mail list archives so people could always find it there.
======================

Another question.... how difficult would it be to create a jsp which takes its input from XML thus rendering the list & single record at runtime rather than at compile time ??
This would only require changes to the dbforms.xml file (like a field saying show in list, etc).


It would make dbforms much more XML centric, which would then be much easier to extent as long a you maintain the xml file properly....

Ideas how this can be done ?

Well I would think that:
#1) you would need xsl sheets to do your transformation
#2) you would to adjust the controller servlet to do that when desired
#3) you would have to difficulty getting all the power of the tag library into xsl sheets and that from a developers standpoint it would not be so desirable to do developing at the the level of xsl stylesheets as opposed to the tag library.

Fred


*********** REPLY SEPARATOR ***********

On 25/08/2003 at 10:37 Shawn wrote:

Hello,

You had:

<db:dbform multipart="false" autoUpdate="false" followUp="/admin/nlv_agenda_list.jsp" maxRows="*" tableName="nlv_agenda" action = "/admin/nlv_agenda_single.jsp" orderBy="activity_date">
<db:navNewButton styleClass="clsButtonStyle" followUp="/admin/
nlv_agenda_single.jsp" caption="Insert new ..."/>


IF YOU TAKE OUT action = "/admin/nlv_agenda_single.jsp", DOES IT WORK? (that line is bypassing servlet control, so I think it's not getting into "insert mode" when you arrive at your single form if you use that.

> I would like to be able to create a new record (using the same form as
maintenance of existing ones) from within a read only list....
The only thing that does not work is call a new record page from the list.... if I first
maintain a existing record and the insert a new record button then its ok....


If that does not work, or you need to have that, what happens if you use a goTo button on your list page such as:

<db:gotoButton destTable="nlv_agenda" styleClass="clsButtonStyle" destination="/admin/nlv_agenda_single_insert_from_list.jsp" caption=" Insert New Record"/>

Then in "/admin/nlv_agenda_single_insert_from_list.jsp" , have your original NavNew button --

<db:dbform multipart="false" autoUpdate="false" followUp="/admin/
nlv_agenda_single.jsp" maxRows="1" tableName="nlv_agenda">
<db:navNewButton styleClass="clsButtonStyle" style="width:90" caption="Insert new"/>


(Don't have all your <db:textArea> elements and things like that so all
the user will see is the insert button. I know the user has to press two button to get to an insert form (goTo + navNew, but I can't seem to find a more direct way --sorry).



So please tell me what I am doing wrong or redirect me to a place in the tutorial where I can find an example of my problem..... or give me an alternative way of this....
-- Shawn

Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/







-- Shawn

Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to