×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Control ID for a button

Control ID for a button

Control ID for a button

(OP)
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!!!

RE: Control ID for a button

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.

RE: Control ID for a button

(OP)
Thanks

It's the "display option and assign its ID to the button" 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!!!

RE: Control ID for a button

Are you familiar with the display application?

RE: Control ID for a button

(OP)
No!

birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!

RE: Control ID for a button

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)

RE: Control ID for a button

(OP)
Thanks for your help

birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!

RE: Control ID for a button

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="Resolved"

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

HTH

RE: Control ID for a button

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

RE: Control ID for a button

(OP)
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!!!

RE: Control ID for a button

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 "true", user condition to "true".  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.

RE: Control ID for a button

(OP)
CHRISSHAW

I think I'm almost there! Followed your instrucitons to the "T", 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!!!

RE: Control ID for a button

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close