cancel
Showing results for 
Search instead for 
Did you mean: 

HTMLB button - Variable as property

TimoRenz
Participant
0 Kudos

Hi at all,

how can i get a variable as a property of a htmlb-button?

In the layout of the site i do a loop over the table to show the data. For each position i should have a button to show a document for this entry. Caused by the layout of this table i cannot use a tableview.

But if i use this htmlb button and use the documentnumber of the entry as the id of the button without " i get the message: "The property must have a value."

If i use "wa_res-documentnumber" as property the value of the property is wa_res-documentnumber. So i cannot use this, too.

So i think a variable cannot be used as a property.

I should have the documentnumber of the entry to handle this entry in the eventhandler OnInputProcessing.

Any other ideas instead using the id of the button?

Thanks and best regards,

Timo

Accepted Solutions (0)

Answers (2)

Answers (2)

TimoRenz
Participant
0 Kudos

It works. Thanks.

athavanraja
Active Contributor
0 Kudos

may be you are not assigning the variable properly.

the right syntax is


 <htmlb:button id            = "<%=wa_res-documentnumber%>"
                    text          = "button"