Focal Point
SUBMIT form question

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9901038331

February 02, 2005, 06:14 PM
Lloyd
SUBMIT form question
I have a foc report that generates work orders. The user that creates these orders will probably need to create 20+ at one time and does not need to see them except to verify the data when a problem arises (ie missing instructions etc.)

The report I created generates the files and sends them to the server as text, excel or PDF (depending on the vendors req.). Now I use the dashboard with a SUBMIT button to generate the report. How do I make the submit button NOT send the results to a target. If I target the lower frame I removes my listings, If I use _self or leave it blank it over writes my upper frame. any Ideas?

Is there a way I can run the focexec from code?

thanks Lloyd
February 02, 2005, 06:19 PM
<Pietro De Santis>
What I do is add an <iframe to the html page and make that the target of the report request.

At the end of the fex, since it does not display a report, you could add a simple -HMTLFORM that displays a message, something like "99 Work Orders created". If something went wrong, you could display an error message with the -HTMLFORM.
February 02, 2005, 07:19 PM
Lloyd
I had thought about that, but I really did'nt want anything visible, just DIR list. (don't want to confuse the users)

I guess I could hide the Iframe.....
February 02, 2005, 07:57 PM
<Pietro De Santis>
<-iframe name="ifMsg" width="280" height="30"
frameborder="0" scrolling="no"
marginwidth="0" marginheight="0"></-iframe>
February 04, 2005, 01:28 AM
George Brown
quote:
Originally posted by Lloyd:
[qb] I have a foc report that generates work orders. The user that creates these orders will probably need to create 20+ at one time and does not need to see them except to verify the data when a problem arises (ie missing instructions etc.)

The report I created generates the files and sends them to the server as text, excel or PDF (depending on the vendors req.). Now I use the dashboard with a SUBMIT button to generate the report. How do I make the submit button NOT send the results to a target. If I target the lower frame I removes my listings, If I use _self or leave it blank it over writes my upper frame. any Ideas?

Is there a way I can run the focexec from code?

thanks Lloyd [/qb]
If you want to generate the report but not output it, you could use save which is the opposite of pchold. It can save the end result as a file on the server... Then you can do an htmlform to output that the task has completed (otherwise people may run the job several times "just to make sure").

If you purposely want to overwrite the file every time it is run then you can also use the app hold trick to make a persistant hold file on the server.

Can you post more of what you need? I'm not sure I understand what you need yet Smiler