start an user action on a Command Button Click

Hi all,

 

Can we start an user action on a command button click..?

 

I used window.open(.. , ..) method.

I could be able to open only the form.....

 

(There are some fields which should be filled with the values from the data base when we open that form.But,values are not fetched from the database and those are not bind to the fields/controls(drop downs or lists) of that form)

 

can it possible to start the user action on a button click?

can you please put a sample solution for this....?

 

Thanks

Tagged:

Comments

  • Are you looking to initiate a new process (Blank Form), open an administration form, or take an action on a existing folder?

  • Hi...Rob vignerot,

    I  want to initiate a new process(Blank  Form)........

     

    Thanks

  • If it is to start a new process, then you can choose, set the "Button action" property to be "New Folder" and enter the process name and action name.

  • Hello....RobVignerot,

    ok.....If i want to start an User action which is in the same process in which the current form (contains Command Button) existed.

    what i mean to say is,Both the user action (to start on a button click) and the form contained Command  Button (used to start the that User Action)are in the same process,Then How can we start that User Action on a Command Button click in Blank Forms?

    Please let me know if i am doing Wrong........

    Thanks

     

  • Are you trying to have a form which has a button ... and you want said button to open the current form in edit mode?  If not, then I suggest using action buttons at the bottom of the form.  I do not believe a regular form button will allow you to start an action on the current or any other form (except to launch a brand new form, similar to starting from the Blank Forms page.).

     

    Others will correct me if I'm wrong.  (At which time I will be interested in finding out how as I have users who have asked for this kind of thing for years.  We got them used to opening the form then taking an action at the bottom of the screen.)

  • Not sure if this is the same but we were trying to do something similar. What the user wanted was at the blank forms, inital request, to open up an calendar that was developed in ASP. This calendar would go out to the database and bring back all the events for the month. Right now we have a form that has a button which when clicked, it will go out to this asp calendar. What the user wanted was for the asp calendar to load immediately so you would not even see the form with the button on it.

     

    Is that even possible?

     

    Thanks.

  • I suspect so by either using an iframe label for your asp page, or perhaps making an external form to an html page which does a redirect to your asp page.  We use both approaches here, though I hope we can change the html redirect when we upgrade to V9.

  • An iframe sounds like the way to go. If the external forms/label doesn't work out in v9, you can always create an iframe in javascript and call it from form_load.

  • Thanks for the suggestion. I am trying to get the External form working. (Never tried an external form before.) The problem I am having is that I need to hide the standard Submit and Cancel buttons and the code that I wrote the usually does this is not working on the external form. Does anyone know how to do that?

     

    Thanks.

  • An extract from the v9 SR2 release notes for you, in case you're planning an upgrade in the near future:

     

    Support for External Forms is not included with version 9.0 SR2. This will be

    enhanced and included with a later release.

  • you can hide commit and cancel button on form load. try to find showSubmit and showCancel function in help file