dave_1893
03-14-2009, 05:28 AM
Hi all,
I'm very new to laszlo and have the following question:
I have a form showing the details of a person with several edittext-elements (for the name, the street etc.) that look like this:
<edittext width="350" height="21" text_y="1">
<datapath xpath="@name"/>
</edittext>
Next to the form there's a list of persons - when you click on one name in the list, the form shows the data of the selected person (because I set the datapath of the form to the datapath of the list) and you can edit and save the data - that works.
I also want to use the same form for adding new persons. The problem is that the edittext-elements are not shown until a person was selected in the list / it is not shown as an empty form for adding new persons. I know that's because the datapath is set to "nothing".
Is there any possibility to show even the empty form when the datapath is missing?
Thanks a lot!
Regards
alex
Version: 4.2.0
I'm very new to laszlo and have the following question:
I have a form showing the details of a person with several edittext-elements (for the name, the street etc.) that look like this:
<edittext width="350" height="21" text_y="1">
<datapath xpath="@name"/>
</edittext>
Next to the form there's a list of persons - when you click on one name in the list, the form shows the data of the selected person (because I set the datapath of the form to the datapath of the list) and you can edit and save the data - that works.
I also want to use the same form for adding new persons. The problem is that the edittext-elements are not shown until a person was selected in the list / it is not shown as an empty form for adding new persons. I know that's because the datapath is set to "nothing".
Is there any possibility to show even the empty form when the datapath is missing?
Thanks a lot!
Regards
alex
Version: 4.2.0