You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Is it posiible to write code for OK and Cancel buttons in secondary page

4 replies [Last post]
Guest's picture
Guest

Hello Everyone,

Is it possible to wrte code for Ok and Cancel buttons which will be popped up by defaultly for the secondary page.

Thanks in advance.

Ashar's picture
User offline. Last seen 5 years 1 week ago. Offline
Joined: 03/26/2008
Posts: 227
Re: Is it posiible to write code for OK and Cancel buttons ...

U can have your own buttons instead of the standarad OK and cancel and write your own code

Guest's picture
Guest (not verified)
Re: Is it posiible to write code for OK and Cancel buttons ...

Thanks for your reply is there any oppertunity to write code to fire upon clicking and cancel buttons in the delivered secondary page.

is it possible to refer to the secondary page in level1 if we have it in levelo using do modal?i

Santosh's picture
Santosh (not verified)
Re: Is it posiible to write code for OK and Cancel buttons ...

No you cannot fire any event on clicking delivered "OK" or "CANCEL" in the secondary page... The best thing to do is have customized buttons of your own and write the code in them ... Your second question is not clear can you explain it a bit elaborately.

KSB's picture
KSB (not verified)
Re: Is it posiible to write code for OK and Cancel buttons ...

Hey...

The 'SAVE' processing does get triggered when you press the delivered OK button on the secondary page.

So you may put your required code on the Save Edit event of any field that appears on the secondary page.

Cancel does not trigger any event and just navigates you back to the original page.

Hope this helps.