Change htmlb element attribute

Hi all
   Can we change the htmlb element attribute in the layout section using event handler?
   I want to set the value of an element attribute to 'TRUE' or 'FALSE' based on the user input and there is only one page in the BSP application.
Thanks
john

Yes U can do that
U have to declare the element attribute as a variable
using <%= x_attr %>
Then change the value of x_attr in the Oninputprocesing event based on certain conditions.
Volia , when the page is rendered , it will pick up the new value.
Because onLayout is called after oninputprocessing , so it will always pick the new value.

Similar Messages

  • Changing Element Attribute Values

    I spent far to long trying to figure out how to change an element attribute value without the FDK's SetAttributes function, so I thought I'd spare someone else the time.
    Basically, you still get the attributes using the GetAttributes() function, but now you just set the beg.child.Attributes property to the updated attribute value.
    //starting with a selected element
    elemSelect=app.ActiveDoc.ElementSelection
    //get the current attributes
    var childattributes =elemSelect.beg.child.GetAttributes()
    //find the attribute and value you want to change, and change it to a new value.
    childattributes[0].values[0] = "New_Value"
    //now assign the edited attributes to the selected element.
    elemSelect.beg.child.Attributes=childattributes
    Depending on how you selected the element, I assume you could do the above with beg.parent as well, but it wasn't something I needed to consider.
    ~Christen

    Thanks for this--you've likely saved me a headache.
    While I hadn't hit this yet, it does apply to several of the projects on my to-do list. Based on the info in the OMV, I would have expected to be able to simply use a statement like myElement.Attributes[i].value[i] = "New_Value" which, as I'm sure you discovered, has no apparent effect at all.
    The other thing I noticed in my quick testing is that defining your attributes variable by using the method (x = myElement.GetAttributes()) or by referenceing the Attributes property (x = myElement.Attributes) seem to be functionally equivalent.

  • Using element attributes to show changes

    Hi,
    I'm working in a structured environment in FM7.2, and the job requires that we save out to SGML. I've been asked to show changes to my documents using a visual element but not change bars (they're already being used) - confused? I hope I can explain it clearly.
    We're creating parts lists, so basically we're working with pages of tables. We have the data from the OEM of the parts lists in hard copy. We have to reproduce that list for our client. The hard copy from the OEM shows their changes to the parts list on the left side of the table - we need to keep those marks but we also need to indicate changes to the list where our client has changed parts and we need to show those changes on the right side of the table with change bars. What I'm thinking is if I could use element attribute data to show the OEM (left side) changes and then that allows me to use the change bars for the client (right side) changes. The element for the item/part already has an attribute called 'change'. I recall reading somewhere that attributes can be used like this but I can't recall where I read it. If all that makes sense and it can be done, my question is how to implement it?
    Any thoughts on this appreciated.
    Carl

    The latest documents I copuld find describing the workings of EDD etc. are those two:
    FrameMaker 8.0 Structure Application Developer's Guide
    FrameMaker 8.0 Structure Application Developer  Reference
    It seems they are not linked from any page, at least Google was not able to find them. The former version (FM7.1) of those documents as a single document can be found here:
    http://www.adobe.com/devnet/framemaker/onlinemanuals.html (Structure Application Developer Guide)
    Since the way the EDD works has not changed very much, you may take any of those, to learn about context rules etc.
    Scriptorium Publishing has some workbooks available:
    http://www.scriptorium.com/books/framemaker-workbooks
    The content of those is partly available in a Wiki at http://wiki.scriptorium.com/
    HTH,
    - Michael
    PS: You did not share the FrameMaker version you are working with.

  • JavaScript for disabling htmlb elements

    Hello,
    in my bsp application i want to change the attribute disabled of htmlb:inputfields and htmlb:dropdownlistbox. I used following javascript:
    document.getElementById('controllerID_inputfieldID').disabled = 'true';
    document.getElementById('controllerID_inputfieldID').disabled = '';
    This isn't work right, because the disabled is displayed other than I set disabled in the htmlb tag (<htmlb:inputField id = "inputfieldID" disabled = "true") and I can choice a element in the dropdownlist.
    What is the correct javascript function for disabling htmlb elements?
    Tina

    I believe that the following will work for you, although I must caution that it is not likely supported by SAP. Any service pack upgrade or patch may break this code. Use at your own caution.
    This is from a function that can disable or enable different objects using Javascript. Setting the st attribute seems to be what it takes to make it readOnly. Setting the class just applies the disabled look.
          case "DROPDOWN":
            switch(mode)
              case "DISABLED":
                window.document.getElementById(ID).st = "r";
               window.document.getElementById(ID).className = "urCoB2TxtDdl urCoB2Ro";
                break;
             case "ENABLED":
                window.document.getElementById(ID).st = "";
                window.document.getElementById(ID).className = "urCoB2TxtDdl";
               break;
           break;

  • Column value substitution in tabular form element attributes

    We started to discuss this at Re: Tabular form with Ajax
    I also mentioned this at Re: how to make only some rows editable in html db.
    but thought that this deserves its own thread.
    In Doug's sample Sudoku application in that thread, he uses #COLUMN# substitution in the Form Element Attributes and it works fine, but in my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:219 I used the same technique and no matter what I do, the #COLUMN# substitution is not expanded by the Apex engine.
    This is driving me nuts, any ideas why it works in one application but not in another?
    Thanks

    Hm, you might be right.
    I copied your row template and modified it at http://htmldb.oracle.com/pls/otn/f?p=24317:219
    The styling looks terrible, not sure why, the template is simply
    <tr>
    <td class="t10data">#EMPNO_DISPLAY#</td>
    <td class="t10data">#ENAME#</td>
    <td class="t10data">#JOB#</td>
    <td class="t10data">#MGR#</td>
    <td class="t10data">#HIREDATE#</td>
    <td class="t10data">#SAL#</td>
    <td class="t10data">#COMM#</td>
    <td class="t10data">#DEPTNO#</td>
    </tr>I had a lot of trouble getting this to work because the wizard generated tabular form appends 2 hidden fields containing the PK and the row-checksum to the last (editable?) field on each row. If the last editable field has #COL# substitution, it expands the substitution and forgets to close the INPUT tag thus causing malformed HTML (I think this is a bug in the rendering engine).
    The readonly condition is sal>1000 which now works. The SAL>1000 fields are now readonly.
    But now the update process is broken. If I enter a number in the first blank SAL field (empno=3641) and click Submit, I get no errors but the change is not saved. Wonder why.
    Hopefully, Scott (Spadafore) will take mercy on our amateurish experiments and give us some definitive answers soon!
    Thanks.

  • How to capture element/attribute

    We have an export client that converts the Frame file to xml. We are using "LightTitle" element at various places, this element also has an attribute called "LightColor".
    When I look at the output xml, I can see all LightTitle elements, but only some of them (2 out of 10) have the LightColor attribute!
    How can we capture the attribute associated with a specific element and output it to the final xml?
    Thanks.

    If your LightColor attributes do not contain ant content - then they will not be written out - you can change the rules to add a 'dummy' if you need them in the XML - OR -(and probably easier) post process your XML and add the missing elements/attribute pairs based on rules in your XSLT or program...
    have fun.
    David
    [signature link removed]

  • WCF wsHTTP adapter: How to control WS-A elements, attributes.

    Hello,
    we have a third party soap web service that we invoke using Biztalk BasicHTTP adapter.
    This wasn't working. 
    That's when we were told the web service is a Soap1.2 endpoint.
    So we have changed the adapter to wcf-wsHTTP adapter. This still doesn't work!!
    we get an error like:  Must Understand check failed for header
    http://www.w3.org/2005/08/addressing : To
    I traced the outgoing call from the adapter via Fiddler.
    I see this:
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
     <s:Header>
      <a:MessageID>urn:uuid:637ec5d5-f7c3-</a:MessageID>
      <ActivityId CorrelationId="b56a4554-c373-4479" xmlns="00000000-0000-0000-0000-000000000000</ActivityId">http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-0000-000000000000</ActivityId>
      <a:ReplyTo>
               <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
      </a:ReplyTo>
      <a:To s:mustUnderstand="1">https://xxx.xxx/xx</a:To>
     if i change the mustUnderstand attribute to 0 in the To element, the web service returns
    the right response. This was tested using Fiddler.
    I understand the adapter is adding the headers like To,ReplyTo etc. but not sure
    why. How do i disable them getting generated? or How can i set the mustUnderstand to 0?
    Any suggestions please?
    thanks
    MS

    Hi,
    Refer the SOAP Header Action mustUnderstand Exception.
    Add the addressing annotation to the Web Service class @Addressing(enabled=true, required=true)
    Change namespaces in the <Envelope> tag from:
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
    to
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.w3.org/2005/08/addressing">
    Both SOAP 1.1 and SOAP 1.2 specifications enable you to use mustUnderstand attributes with SOAP headers. Not handling these headers properly is a common concern during Web service
    interactions.
    Refer: Understand the Famous "Did not
    understand MustUnderstand header(s)"Error
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Pop-up LOV, add Element Attributes?

    Hello again,
    I have a pop-up LOV (named LOV) on a column in the detail section of a master-detail form (imagine the "Employee Num" being a pop-up LOV in the image linked below[1]). This field also allows normal user entry just like any input field (this is, input is not disabled).
    However, while viewing the source HTML this field just an ordinary input field, I cannot seem to add an element attribute via the usual means. Just for arguments sake I want an alert box on each keypress, usually I would just add the line: onkeypress="javascript: alert('hello');" in the Element Attributes under the "Column Attributes" section. This is not working for me, however.
    How would I go about calling a JavaScript function (on a keypress, say) using this pop-up LOV input method?
    Thank you for you time.
    I am using APEX version: 4.0.2.00.09
    [1] http://imageupload.co.uk/viewer.php?file=yu7i83h5dpk5cy0npsy0.png
    Edited by: 986065 on Feb 14, 2013 1:51 PM

    Hello Bob,
    Sure you can enter a button on the template, but the problem is how to find out which page to call when the Add button is pressed.
    You can write your own LOV page(s) and attach those to a field (i.e. by adding a clickable image in the post element text) and then you can have all the control you want.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Error while changing the Display Attribute into Navigational Attribute

    Hi all.. Gud Mrng.
    I was changed the attribute (product) from display attribute into navigational attribute and while save and activating the info object it is not getting activated and it is throwing the below error message.
    Error Message: u201CThe Info object is being used in several data targetsu201D
    My Questions:
    i)     Do I need to delete the data from all the data targets (where this info object is using)??
    ii)     Do I need to delete data only from the main info object (Zmaterial)? Is this single action enough?
    Please suggest me which action I need to follow & What are the precautions need to take while changing the Display Attribute (product) into Navigational attribute of info object (Zmaterial).
    Thanks in advance.
    Thanks & Regards,
    B Venugopal

    Hi Garima
    Only in case of key figures we cannot change it from display to navigational.
    If the info object is a characteristics then in the General tab of the info object if you select 'attribute only' then the iobj would be a display attribute only. If you leave it unmarked then you can use the iobj as a navigational atribute.
    I am sure you know that these settings only mean if a IOBJ can be used as display or navigational.  To  use it as a navigational within another object you will have to change the settings from 'DIS' to 'NAV' for the said info object in the 'Attributes' tab of its parent info object.
    Further if you use the parent info object in any data target / infio provider you will have to further mark the info object as 'navigational' while defining the attrbute of the said data target / info provider. The info object gets displayed in the data target / info provider attribute properties as 'parent IOBJ_info object'
    Cheers
    Umesh

  • Change Mrp Element Data of Production Order in MD04

    Dear guru ,
    In the mrp element data of the stock/requirement list for the production order I see the
    Production order number , the order type , and the system add /RE if production order is released or
    /PD if production  order is partial delivered. No other information about others production order status.
    How can I change mrp element data using Customizing or ABAP in order to recognize in MD04 if production order is confirmed or partial confirmed ?
    Thanks.

    Dear Cris ,
    I am not sure if CNF/PCNF will show up in the MRP Element data in MD04.I have checked PO which are also CNF/PCNF and i looked the same order in md04.It is not showing .U may need some ABAP help .
    But if you really intersted to see the list PO status together , then go to COOIS and give plant , order type .It will give you all the order under that plant irrespective of material and also Status.U ave lot of option to filter the PO status under Status Profile or System status ok.
    Hope this will fullfill your requirement
    Reward point if useful
    Regars
    Jia

  • Change WBS element from Sales order

    Hi...
    I have created one sales order with WBS element assignment then I have created billing document and released to accountingu2026.
    Accounting and controlling documents are fineu2026
    After creation of accounting document system is allowing to change or delete the WBS element at sales order item levelu2026same time profit centre field does not allow to change or delete
    We donu2019t want to user to change WBS element after creation of accounting documentu2026that field should be shown in greyu2026
    Please help me to solve this issueu2026
    Thanks,
    Raj

    Hi,
    You can create a Transaction Variant for the transaction VA02 in which you have to maintain the WBS Element field as output only.
    1. Go to SHD0, enter VA02 in Transaction & give a name to the transaction variant and press Create.
    2. Enter an order no., go to the item "Account Assignment" tab.
    3. Check "Output Only" against WBS Element in the screen listing all the tabstrips & Fields.
    4. Exit & Save.
    You will be returned to the SHD0 screen.
    Select the "Standard Variants" Tab under "Standard Vriants" tab. Press activate to activate the Transaction Variant.
    Go to VA02 to test the variant. You will get the WBS Element disabled.
    Revert in case of any doubts.
    Regards,
    Vijay

  • How to change set type attribute of a product

    Hi ;
    I created additional fields for products by using "COMM_ATTRSET". It created a table and functions but I dont know how to change this additional attributes.I cant use these attribute set functions because i dont know fragment_id yet. I think there must be a function encapsulates them.
    Is there any BAPI to change set type attributes?
    PS: In forums , I found an FM "COM_PRODUCT_MAINTAIN_MULT_API" but I think it hasnt been used anymore in CRM7.0
    Thanks

    Thanks for your reply ;
    but FM 'COM_PRODUCT_UI_MAINTAIN' doesnt have any generic import parameters to send my data to it in form of  newly created attribute set type table "ZPRODUCT".
    I want to set some fields of ZPRODUCT and i need to send them in this structure,  this table has column FRG_ID , if you set an additional  parameter for the first time , it generates new GUID..I think  'COM_PRODUCT_UI_MAINTAIN'  generates this GUID but i dont know how to use it.
    Can you give an example about using this FM?

  • How to change only one attribute at the host

    Hi experts,
    we use host configuration with special host types. If we want to change only one attribute of the host with the cli we must change all attributes associates with the host. If we define only one new attribute all other values are set (back) to the default of the host type..
    (in the gui all works fine...)
    Is there a chance to change a only one attribute and keep all other attribute values of the host ?
    Thanks,
    Chris

    No, it is not possible to do that.
    All attributes (passed via -attr) are treated as a single argument to the host modification (similar to a name or description). Essentially, when you provide a -attr argument to hdb.h.mod, the command will reset the existing overridden attributes and consider only the new attributes coming thorugh the -attr arg for overriding.
    You see it working from the UI properly because, the UI requests for overriding all atributes once again, even though you manually changed only one attribute.

  • Changing the ImageData attribute of a list viewnode..

    Hi,
    I am trying to change the Image Data attribute of a list view node after
    a user clicks on it. But it just doesnot get reflected in the listview.
    UpdateFieldFromData()/UpdateWindow() donot do the job either.
    I could ofcourse clone the node, change it's ImageData, remove the old
    node, insert the new one and then do a SetViewNodes(), but that is really
    not the solution!!
    Has anyone been in this situation before??
    Thanks in advance.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]

    I discovered what was wrong with what I did.
    You have to an UpdateFieldFromData() on the DisplayNode object of the
    listview to get refreshed. Doing an UpdateWindow/UpdatefieldFromData on
    the ListView widget doesnot work!!
    Thanks.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]
    -----Original Message-----
    From: Lee Wei [SMTP:[email protected]]
    Sent: Friday, February 13, 1998 9:29 AM
    To: Singh, Inder Jyot
    Subject: Re: Changing the ImageData attribute of a list view node..
    I tried the situation you described and saw the same problem.
    You should probably let Tech Support know and file a bug.
    Lee Wei
    At 09:25 AM 2/13/98 PST, you wrote:
    >
    Hi,
    I am trying to change the Image Data attribute of a list view node after
    a user clicks on it. But it just doesnot get reflected in the listview.
    UpdateFieldFromData()/UpdateWindow() donot do the job either.
    I could ofcourse clone the node, change it's ImageData, remove the old
    node, insert the new one and then do a SetViewNodes(), but that is really
    not the solution!!
    Has anyone been in this situation before??
    Thanks in advance.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]

  • How to change data element of IDOC segment

    HI Experts,
    I have copied a segment E1ISU_MEASUREMENT_MEA to ZE1ISU_MEASUREMENT_MEA.
    Now i want to change data element of one of the field of the segment.
    Please guide me how i can do it?
    is there any disadvantages of doing this?
    can we do it easily?
    please give me step by step instructions if possible .
    thanks in advance
    Anit

    Hi,
    When you want to modify the segment details of a particular IDoc, you could do the same by editing the segment details via t-code, WE19. Once you edit, click on, Outbound or Standard Inbound if your IDoc is Outbound or Inbound respectively. A new IDoc will get generated. The generated IDoc will be in "yellow" status, ready to be picked up by a batch job if there exists one. Else you need to manually process the IDoc via the respective program.
    ~ Bineah

Maybe you are looking for

  • Photo gallery in DW

    Ok, so I have my page layout almost completed in DW. Id like to add a photo gallery to my page, but not the kind DW automatically creates. Id like the gallery to stay within my page layout, and have a few rows of thumbnails, and when a thumbnail is c

  • Hard drive not recognised. Haven't backed up my work recently. Don't want to lose everything

    I'm having a bit of disaster. I finished university for the term today, and typically my laptop decided immediately after my last class to die. When I turn it on I get a picture of a flashing folder with a question mark. I put it into recovery mode,

  • Question for Sue and others - Problems exporting back to Mini DV tape

    Hi there Sue This is a very interesting concept that you have mentioned in another of your posts: "In the past, many posters reported this type of problem. There is a workaround that I realize should not be necessary, but it has helped many. Instead

  • Apex form based on a table problems with ID column

    Hi all, Am going round and round in circles trying to get this to work and i'm not getting anywhere fast. Trying to get a form to process an single row insert into a table. Using Automatic Row Processing to insert, the pk column page item is hidden a

  • ODS QUESTION

    hi experts, can any body tell what are the parameters to cosidering for ODS, say if we have 20kf,20 char in genaral what we will choose either ODS or CUBE revret back pl venu