cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry: DetailScreen Field, EditType: Button

Former Member
0 Kudos

Hello,

on a DetailScreen I create a Field as Button (Edit Type: Button). I can set the buttonlabel in the Attribute "Format" but this isn't set able with a rule. In a "normal Button" I can set the buttonlabel with the Attribut "Label" an there can I use a Rule for it. (like in the picture Point 1) Is it possible to set the buttonlabel in the Field Edit Type Button generic?

Filed Button

Accepted Solutions (1)

Accepted Solutions (1)

jason_latko
Advisor
Advisor
0 Kudos

Andre,

I don't think there is a way to do this.  It looks like the fact that the set by rule on a button screen field is missing on the format string is an editor oversight.  It really should be there.  I tried setting the format string to %propertyName to reference an object property on the displayed screen, but that didn't work either.  That way you could set your dynamic string prior to the screen being displayed and then just point to the property to dynamically update the button, but it just displayed %HeaderText on the button caption.  This may still be possible and my syntax is just wrong.

You should file a ticket with Agentry support to get the rule added to the format string on screen fields.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Ok,

That's a good hint. I will do this and post the answer here when I got one.

Thanks a lot,

André

Answers (1)

Answers (1)

mark_pe
Active Contributor
0 Kudos

Andre,

I am trying to understand your question.

You mentioned or asked "Is it possible to set the buttonlabel in the field edit type button generic?"

If I am reading the question correctly, I am going to paste a picture below to help with my answer.

The picture above is a button with EditType = Button.The Label attribute can be set to a rule that you define (It could be as simple as a hard coded constant or a coming from a global variable).

I am not sure if this answers your question:

Is it possible to set the buttonlabel in the field edit type button generic?

I am not sure what you mean by generic. But the picture above is what you want to use as a basis.

Regards,

Mark Pe

SAP AGS Senior Product Support Engineer

Former Member
0 Kudos

Hello Mark,

thanks for your answer. But the label from the field definition of type button only print the labeltext at the left of the Button not on the Button him self.

Jason Latko give me a good hint.

Best Regards,

André

mark_pe
Active Contributor
0 Kudos

Andre,

I realized that you now mean the format on the button itself after Jason's comment. I believed the format rule was already being requested internally. It is feature/change request #AG-20074 - If Format is used for Push Button Control, VSE to display the format on the Push button (Status: still in planning) or it is AGE-1738-VSE button controls do not support the Format property (But I believe the AG-20074 is the main one).

In short, it is not supported due to the button control mechanism does not support format.

If ever it gets supported, it is based on the change request AG-20074 being implemented in Agentry. Most new tickets that gets sent to engineering gets closed to the AG-20074. It is a known issue and change request. All they need to do is add it in the code + editor + client. So if you open a support ticket based on what Jason specified it will get pointed back to AG-20074.

Hope this information helps you out with your question if it is possible to format the button.

Regards,

Mark Pe

AGS Senior Product Support Engineer

Former Member
0 Kudos

Hi,

we check out the SMP3.0 SP5 SDK and must see that my problem with the dynamic button text (get the rule added to the format string on screen fields) is not available.

It is planned for a future release?

Thanks,

André

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

André,

Since it isn't supported yet in the platform, let me offer you a workaround.  You can create your button field instead as an Active X control using the Agentry SDK.  This will allow you to fully control the presentation of the button and set whatever text you want on the control.  Yes it will make the client deployment a little more complicated but will solve the problem.

--Bill