cancel
Showing results for 
Search instead for 
Did you mean: 

How to display image by default in Agnetry

Former Member
0 Kudos

Hello All

I am working on scenario which i have two button one for start and other for stop when i click on start button this will display the start image now when i click on stop button then image will be display for stop button but i want after transmit stop button should be check by default.

Regards:

Sumit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sumit,

     I think u want to know about how and where we can use "Value when Select" attribute of Edit Type Button?? I am also having the same Problem. Hoping for Positive Responce.

Regards,

Vaidehi

Former Member
0 Kudos

Vaidehi,

       At this link http://infocenter.sybase.com/help/index.jsp they said that For a button field on a transaction, fetch, or object detail screen, if the target property matches the value set for this attribute, the button will be in a selected state.

I want to implement this feature with the help of "Value when Selected".


I want after transmit stop button should be check by default. In short, Initially i want stop button should be check by default as screen appears.


Regards:

Sumit

former_member208808
Active Participant
0 Kudos

Sumit,

you are saying

"I want after transmit stop button should be check by default. In short, Initially i want stop button should be check by default as screen appears."

just let us know what type of screen it is ?

1) Detail Screen which displays this button for stop.

2) Transaction screen where you want to act on this button.

Regards,

AK

Former Member
0 Kudos

AK, I am implementing this on detail screen using Edit type(Button).

former_member208808
Active Participant
0 Kudos

Ok Sumit,

I think this should answer your question,

On detail screen you can implement this as shown below.....

1)Your screen has a field for button like below.Change its Value when selected as shown below

2)On same field apply update rule as below

3)That rule is like below (simply return what you have in value when selected)

@Vaidehi this should answer your question as well,

Simply add something in your "Value when selected" for that field and return it from update rule for that field

Regards,

AK

Former Member
0 Kudos

Ak,

Thanks for your reply it works But i have same question as Vaidehi Dixit replied plz have a look on this also So we can have better understanding about "Value when selected".

Regards:

Sumit

former_member208808
Active Participant
0 Kudos

Sumit/Vaidehi,

Don't confuse it with true and false,

Try all combination like

1)

Value when selected : true/false

update rule : true/false

all four possible combinations for above case

(It will work for true or false in case of boolean values.

That's why it is working for check box even if you don't specify that in "Value when selected".

For that sake give "Value when selected" as nothing and return anything like "Checked" from update rule and see what happens.

Or try following combinations

Value when selected : --blank--/checked/unchecked

update rule : checked/unchecked

)

2)Change it to radio button and see what happens

Value when selected : Radio

update rule : true/false/Radio


That should answer your question.

3)Still confused give it another try

     a) by adding it on transaction screen,

     b) map transaction property with some object property (optional)

     c) write a "Rule-rule after data entry" for that transaction property

     d) And refer that property in rule.

Former Member
0 Kudos

Ak,

Thank you so much for such a nice explanation, It helped me.
Regards:
Sumit

Answers (3)

Answers (3)

Former Member
0 Kudos

AK,

Thanks for your reply. but you know if u pass a Constant(x=True) in update rule and  value when select as blank then also the button will be in select state.Then what is the actual use of "Value when Select" attribute.

Regards,

Vaidehi

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sumit,

Let me see if I understand your scenario.

You have two buttons (start and stop) and an image (separate from the buttons).

  1. If you click the start button the image should display the start image
  2. If you click the stop button the image should display the stop image
  3. After a transmit the image should display the stop image

I would look to implement this as follows:

  1. Use an embedded image to display the start / stop image and have it set to determine which image to show based on a rule that evaulates the contents of a Main Object property.
  2. The start and stop buttons will call local transactions to set a Main Object property to indicate which image to display.
  3. After your transmit action step you can also call the transaction to set the stop image.

Hopefully that will help you get started.

--Bill

Former Member
0 Kudos

Bill,

Basically i want to implement the "Value when Selected" Attribute in Edit Type-Button.

At this link http://infocenter.sybase.com/help/index.jsp they said that For a button field on a transaction, fetch, or object detail screen, if the target property matches the value set for this attribute, the button will be in a selected state.

I want to implement this feature with the help of "Value when Selected".


I want after transmit stop button should be check by default. In short, Initially i want stop button should be check by default as screen appears.


Regards:

Sumit

former_member208808
Active Participant
0 Kudos

Hi Sumit,

Can you please provide some more information,

like

1)a screenshot of what type of buttons are those

2)what is the screen type

3)what is the version of agentry editor,server,client

Former Member
0 Kudos

Evening Ak,

Basically i want to implement the "Value when Selected" Attribute in Edit Type-Button.

At this link http://infocenter.sybase.com/help/index.jsp they said that For a button field on a transaction, fetch, or object detail screen, if the target property matches the value set for this attribute, the button will be in a selected state.

I want to implement this feature with the help of "Value when Selected".


I want after transmit stop button should be check by default. In short, Initially i want stop button should be check by default as screen appears.

Regards:

Sumit

Former Member
0 Kudos

Sumit, are you using a Button within the "Button" setting of the screen, or do you have a property on the screen with the type of "Button"?

What you describe is only for the property type button and not the button section.

former_member208808
Active Participant
0 Kudos

Sumit,


i think you are using check box button

1) so to achieve that this field will be mapped with some transaction property

2) this transaction property should be Boolean

3) on transaction property following options are available (as "Initial Value" dropdown)

    --constant

    --rule before data entry

    --rule after data entry

    --from diff object prop etc...

4) set this as constant and select the check box below it to set it (Checked)

5) if you want it to be done by object property map it to from object property (if object property is true it will be checked by default)...

Regards,

AK

Former Member
0 Kudos

Stephen, I am implementing this on detail screen using Edit type(Button).

former_member208808
Active Participant
0 Kudos

Hi Sumit,

Have you tried what i have suggested for checkbox buttons with transaction.

Regards,

AK