Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control ID for a button

Status
Not open for further replies.

TudorSmith

Programmer
Jan 14, 2002
245
GB
How do I add a ControlID for a button on my format?

I want to add a button that will change the problem.status to "Resolved" when the user clicks the button!

Any ideas?

birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
If you're looking to duplicate a button that is already in the tray or options menu, you can just make a button and make its ButtonID be the same as the ID of the display option that you want. eg the Resolve button in the tray is ID 7, so you could make a button that sets the ID to 7.

If you want to make the button do something different, you'll need to make your own display option and assign its ID to the button.
 
Thanks

It's the &quot;display option and assign its ID to the button&quot; bit I want, but do not understand the Service Centre navigatoin methods enought to know where I need to apply the details!

I'm using SCv3.0 sp5 if you have any further suggestions :) birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
No! birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Sorry, the explanation is quite in depth, so I'm going to recommend that you call support or try reading up on display (it's in System Tailoring 2)
 
Thanks for your help birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Here's basically what you're going to need to do:

1. Figure out what display screen you want the button to appear in (note, this is *not* the same as the format name). If it's editing a problem in a problem.<category>.update format, it will be probably be apm.edit.problem. If it's in apm.quick, it will be apm.first.

2. Add a display option to that screen. You'll probably want the GUI option to be either 200-999 (shows up in the Options menu) or 1000-4999 (doesn't show up in any menus). Make the Action be redraw. You won't need to run any RAD apps, just put in an expression in the pre-RAD list that says:

problem.status in $L.filed=&quot;Resolved&quot;

Then make the ButtonID on your button be the GUI option you selected.

HTH
 
chrishaw

This is great. I understand everything you're saying. I followed your steps, and I'm in the display screen for apm.edit.problem now.

I've clicked the TAB for options and I can see a whole list of gui buttons.

How do I add my new one? I tried clicking the <ADD> button but that doesn't help?

regards

birklea
 
chrishaw

This is great. I understand everything you're saying. I followed your steps, and I'm in the display screen for apm.edit.problem now.

I've clicked the TAB for options and I can see a whole list of gui buttons.

How do I add my new one? I tried clicking the <ADD> button but that doesn't help?

regards

birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Pick one of those options by clicking on it, then delete the Unique ID (system will generate one for you one save), change the GUI option, change the condition to &quot;true&quot;, user condition to &quot;true&quot;. Give it a baloon help and label, put in the other stuff I was talking about, then click Add in that screen (you'll be in displayoption.g instead of displayscreen.g). Make sure you hit Add not Save so that you don't destroy the existing option you're looking at.
 
CHRISSHAW

I think I'm almost there! Followed your instrucitons to the &quot;T&quot;, and all is in place.

In the fomrat design I places a button on the format and gave it the ButtonID = 2020 (Same as the GUI I Entered).

Finally...openend a ticket in the update screen, and the button is disabled (Greyed out). Any suggestions? (p.s. I feel a start going your way for this one!) birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Make sure the option is there, double check the conditions in the option (the system uses both condition and user condition and'ed together). If the conditions evaluate to false, it won't be active.

Hmm. Basically, for the button to be enabled, it has to have a button ID and then an active displayoption that matches it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top