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

htmlb button

Hi,

i'm using ep6 sp2 and i want to use setValue(value) method from javascript api for a Button component, but it's not working.

Methods like setEnabled() and setDisabled() it's working very well.

Thanks.

Florin

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 16, 2005 at 10:35 PM

    Hi Florin,

    there is no setValue method for a button, see https://media.sdn.sap.com/javadocs/NW04/SP9/htmlb/com/sapportals/htmlb/Button.html

    Do you think of <i>setText</i>?

    Hope it helps

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

    • Ooops, must have been too late... sorry...

      Nevertheless, the answer is almost the same:

      Hi Florin,

      there is no setValue method for a htmlb button, see https://forums.sdn.sap.com/thread.jspa?threadID=26395

      From this you'll see

      function _htmlbButton(formid, id) {
        var obj = new Object;
        //properties
        obj.id = id;
        obj.formid = formid;
        obj.documentelement = document.all[id];
        var bt = document.getElementById(id);	
        if (bt.getAttribute("dsbl")=="true")
          obj.isEnabled = false;
        else
          obj.isEnabled = true;		
        //methods
        obj.selectFocus = _htmlbisvalid;
        obj.setErrorText = _htmlbisvalid;		
        obj.setEnabled = _htmlbButtonSetEnabled;
        obj.setDisabled = _htmlbButtonSetDisabled;
        return obj;
      }

      and looking at the supported methods shows -- no setValue.

      Hope it helps

      Detlev

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.