Hello all,I have a problem creating a web form I have form 1 and form 2 ,form 2 is a response to form 1 and created through a button with the following formula
@Command([FileSave]);
@Command([ViewRefreshFields]);
@PostedCommand([FileSave]);
@PostedCommand([Compose];“Travel Request Detail”)
when form2 is open it is blank with no data in it if I save and close form1 then reopen it and compose form2 it wirks fine
how can I achive that without closeing and reopening form1
thanks
Subject: web document must be saved and closed then reopen to inherit values from parent doc
There are a couple of methods in LotusScript that are used for this exact purpose:
NotesUIDocument.reload()
NotesUIDocument.refresh()
If you search for reload and refresh in the Development help you should be able to find the formula language equivalent.
GL,
Shawn
Subject: RE: web document must be saved and closed then reopen to inherit values from parent doc
thanks Shawn,but this is a web application ,so I cannot use Lotus Script,any ideas
Thanks alot
Subject: RE: web document must be saved and closed then reopen to inherit values from parent doc
hi
there are two things
first, you can use lotus script on web using agent.
second, a little workable solution.
at the click of button propmt the user a msg like “in order to create child you have to save parent first”.
or you can do the same without telling the user at all.
one more thing you need not close the parent at all.
cheers
amit maheshwari
Subject: RE: web document must be saved and closed then reopen to inherit values from parent doc
Hey,
Try using these:
@Command( [ReloadWindow] )
@Command( [RefreshWindow] )
I believe the reload will pull the data from the back end and refresh will force the page to display the newly acquired data.
Be sure and save the changes first for this to be effective.
Or, read this post from Stan Rogers and see if that is helpful.
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/035f681b3d051fec8525712c006e20e0?OpenDocument
You will have to forgive me as I don’t do much web development. I am heading in that direction generally but don’t have a lot of experience under the belt. I do have a lot of belly over the belt, but that won’t help you will it!!

Shawn