Forum Discussion

pravin_k99's avatar
pravin_k99
Contributor
14 years ago

Object Property Value = Code but not static value

Hello Friends,



I dont have any unique properties populated for a text box. But there is a label (different object) which has the an index always greater than 1 and I want to use it

example

- Panel1

--- Label("Acc.No",2)  -- this is the label

--- Textbox("edit",1)  -- this is a text back which has index one less than the label index



Now what i want to achieve is



Map Textbox("edit",1)   which will have class as "edit" but I want to use a code in index property something like this



index = (go find an object which has label = Acc.No & get its index and subtract it by 1 and use that value)



how can i? is it actually possible?



Thanks

Pravin

1 Reply

  • Hi,



    You can map your application once and use project variables to change its identification attributes dynamically (see the Specifying Identification Property Values help topic).



    Obtain your label, get its index, decrease it and assign to a variable used as index value of the text box.