norwim
2nd October 2014, 14:37
Hi there,

can someone give me a hint how to achieve that the windows GUI start button of a session has another text instead of "print"?

I have to change this next monday on a customers system and no system I can experiment on atm.

The session in question was generated as a print-session because of the naming convention.

The session works well, all printer related stuff has been removed - but the customer demands that the button to start the processing mustn't be labeled "print".

I used to work with ascii-clients and never bothered much about these button stuff in the GUI.

Thanks in advance

Norbert

bhushanchanda
2nd October 2014, 14:54
Hi,

You can go to Session - > Specific - > Form Commands.

For that specific form command, you can add a New Label with whatever text you require.

I guess this is what you are looking for.

If there is no form commands i.e. they are using standard print command, then you can create one and add your specific label to it.

Now, in your script, create a function:-

function extern form_command_name()
{
execute(print.data)
}

Now, double click on session, go to Form Tab, and in default button make Command Type as Form Command and Default Button as your new form command.

mark_h
2nd October 2014, 16:33
Bhushan - Not sure it works that way in 4c4. What I typically do is 1 of 2 things. First I would go into the maintain form session and hit buttons - they might have just labeled the continue button as "print". In this case all you need to do is change the label.

They second way is to go into "Spec. Options". The original developer might have added a choice.user button. Again you would just need to change the description or short description.

In either case no coding should really be needed in 4c4.

norwim
2nd October 2014, 16:36
Thanks a lot, I'll report next monday how I got along.

regards

Norbert

bhushanchanda
2nd October 2014, 17:16
Hi Mark,

Yes, it was specifically for LN.In LN, its not possible to change the label of Standard Print Button. Hence, we need to add a new user command and give it a label as you want ( Same what you said)

The coding part will come into picture, only if there is a requirement to replace standard print button to customize button with a new label.

PS:- I am looking forward to see you in LN soon ;)

mark_h
2nd October 2014, 18:23
PS:- I am looking forward to see you in LN soon ;)
Me too! I am hoping we start in 2015.

bhushanchanda
2nd October 2014, 18:28
Happy New Year in Advance then! :)

norwim
6th October 2014, 15:51
Hi there,

I am too stupid :-(

In Maintain session, mask2 under forms if I choose "buttons" I find 3 checkboxes:

Weiter (continue) - not checked
Abbrechen (Abort) - checked
Weiter (seems to be print) - checked

With this settings, the button is labeled "print" and choice.cont.process: on.choice is executed when I press this button.

If I change the setting and check the first button and uncheck the third, the button displayed has label "OK" - which is great - but on.choice is not executed when I press it -

As I had to admit, I never really cared about buttons so far - any help greatly appreciated

thx in advance

Norbert

mark_h
6th October 2014, 16:06
I always thought the "ok" button was the same as continue. I guess not. You can fix it two ways - just click the continue button and remove anything from the "label continue button". Or you can change the "label continue button" - with Ok, Process, or what ever you think the customer would like the best.

norwim
6th October 2014, 16:26
Thx Mark,

that worked!

IOU

regards

Norbert