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.

How to hide 'Apply','Refresh' buttons & rename label of 'OK' button to 'Save' for a DoModalComponent ?

2 replies [Last post]
Guest's picture
Guest

I am trying to figure out:-

1) how to hide the 'Apply' and 'Refresh' buttons when launching a component by using DoModalComponent function?

2) how to rename the label of 'Ok' button to 'Save' when launching a component by using DoModalComponent function?

Lepa's picture
User offline. Last seen 2 years 19 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: How to hide 'Apply','Refresh' buttons of DoModalComponent ?

>> 1) how to hide the 'Apply' and 'Refresh' buttons when launching a component by using DoModalComponent function?
These could be controlled on the Component Properties "Internet" tab. The are located inside the "Toolbar" group box. Uncheck the ones you don't need to disable all.

>> 2) how to rename the label of 'Ok' button to 'Save' when launching a component by using DoModalComponent function?
These are Built-in OK or Cancel button for the DoModalComponent function and I don't think you can change them.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

HH's picture
HH
User offline. Last seen 10 years 15 weeks ago. Offline
Joined: 07/09/2008
Posts: 17
Hiding OK/ cancel buttons

hi
What lepa mentioned is correct.
However you could hide the ok and cancel buttons. I think its a page property and add your own buttons to the page. Add the necessary peoplecode behind the buttons.