Skip to Content
author's profile photo Former Member
Former Member

HTMLB button - Variable as property

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 09, 2010 at 07:49 AM

    may be you are not assigning the variable properly.

    the right syntax is

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 05:40 AM

    It works. Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.