Disabling a ui element at runtime

Hi experrts
I need to disable a link to action ui element that is avaliable in a talbe at runtime can u please help out in this issue
Regards
Noel

Hi Noel,
Inside the value node(which is bound to your table), create a value attribute of type 'boolean, say 'LinkEnabled'
Bind this 'LinkEnabled'  to the LinktoAction celleditor of your table's column.
Then if you want to disable this link to action for i-th row of you table, give
wdContext.node<YourTablesValueNode>().get<YourTablesValueNode>elementAt(i).setLinkEnabled(false);
for all other rows, for which, linktoAction is to be enabled, give
wdContext.node<YourTablesValueNode>().get<YourTablesValueNode>elementAt(i).setLinkEnabled(true);
thanks
Smitha

Similar Messages

  • How to disable UI element during runtime

    Hi!
    Can someone show me how to access the properties of ui elements during runtime?
    eg. in the method  WDDOINIT i want to enable/disable the GroupBox "Group"
    how to?
    thanks

    >
    Abhimanyu Lagishetti wrote:
    > ideal way is the one i specified,
    >
    > other way is you have to change it in WDDOMODIFYVIEW
    >
    > to get any UI element this is the code
    >
    > view->get_element( '<ID of the UI element>' ). which return the corresponding UI element reference
    >
    > the UI element classes start with CL_WD_*.
    >
    > for example: inputfield CL_WD_INPUT_FIELD
    > data: lr_input type ref to cl_wd_input_field.
    > lr_input ?= view->get_element( '<ID of the UI element>' ).
    > lr_input->set_enable( abap_true ).
    >
    > Abhi
    I would like to stress that this NOT the SAP recommended way of controlling the properties on UI elements - the first solution you were give would be the recommended approach.  The direct UI coding access should be used as a last resort when working with dynamically generated UI elements.  Otherwise you should always try and set the UI element properties via context binding. This makes your application more accessible to customizing/personalization, makes it easier to maintain over time and provides the best performance.

  • Change properties of UI Elements during runtime in Web Dynpro ABAP

    hey ,
    what is the convention for changing ui elements in runtime by method set_attribute_property ?
    for example :
    changing visibilty of text box :
    property= 1.
    *" call method set attribute property and pass value as 'X' to show
      call method lo_el_radio_node1_1->set_attribute_property
        exporting
          attribute_name = 'FIRST_NAME_1'
          property       = 1
          value          = 'X'.
    and in changing enable/disable  of text box :
    property = 4.
    *" call method set attribute property and pass value as 'X' to ENABLE
    call method lo_el_radio_node2_1->set_attribute_property
       exporting
         attribute_name = 'FIRST_NAME_2'
         property      = 4
         value         = 'X'.
    how the property value is defined ?
    link to full example :
    [link|http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP]
    Regards ,
    ASA

    Hi,
    I also need to change the read-only property of a field at runtime in webdynpro. The read only field should be enabled at runtime.
    I've used the  call method lo_nd_packslip->set_attribute_property
              exporting
               attribute_name = 'ZOPAK'
               property = '3'
               value = space .
    but I am not getting the desired output.
    Thanks,

  • Issues in creating Interactive Form UI element at runtime.

    Hi Experts,
    I have a requirement according to which i need to create multiple PDF forms at runtime.This i need to do using webdynpro Java.
    The approach that i would be using is creating interactive form U I element at runtime.
    So in a test application in  views wdDoModifyView i added the below code i.e.
    In the do modify view i have added the below piece of code
    if (!firstTime)
                   IWDNodeInfo l_sel_nodeInfo =
                        wdContext.nodeCtx_vn_binary().getNodeInfo();
                   IWDAttributeInfo l_attrInfo =
                        l_sel_nodeInfo.getAttribute(
                             IPrivateAdobeView1.ICtx_vn_binaryElement.CTX__VA__BINARY);
                   if (view.getElement("adobeFrm") == null) {
                        IWDTransparentContainer container =
                             (IWDTransparentContainer) view.getElement(
                                  "RootUIElementContainer");
                        IWDInteractiveForm adobeFrm =
                             (IWDInteractiveForm) view.createElement(
                                  IWDInteractiveForm.class,
                                  "adobeFrm");
                        adobeFrm.bindDataSource(
                             wdContext.nodeCtx_vn_adobe().getNodeInfo());
                        adobeFrm.setMode(WDInteractiveFormMode.UPDATE_DATA_IN_PDF);
                        adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
                        adobeFrm.setDisplayType(WDInteractiveFormDisplayType.NATIVE);
                        adobeFrm.bindPdfSource(l_attrInfo);
                        adobeFrm.setVisible(WDVisibility.VISIBLE);
                        container.addChild(adobeFrm);
                        adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
    But now i am stuck at this point as its giving me null pointer exception on execution.
    Could some one provide me links to the tutorials which contains dynamic creation of Interactive form UI element.
    I do have links which show creation of input fields at run time  but couldn't get any on creation of Interactive Form UI element at runtime (dynamically).
    Thanks in advance!!!

    Hello Dan,
    About the license issue, take a look at the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms">Adobe Interactive forms section on SDN</a> on the right side there is a FAQ. In the FAQ there is something mentioned about license.
    When you are using NWDS04s the Adobe Document Service (ADS) is already installed. You only need to configure the ADS. Take a look at <a href="http://service.sap.com/adobe">http://service.sap.com/adobe</a> on the left click on "Media Library" --> "Documentation".
    When you want to make use of Adobe Interactive forms you need a Adobe Reader 7.x.x or higher.
    Hope it helps.
    Kind regards,
    Maarten.

  • Caption element at runtime

    Hi,
    How do I change the text og af Caption element at runtime.
    Thanks,
    Morten

    Hi Morten,
    You have to create a context attribute of type string and you have to bind the text property of this caption with this attribute..... now at run time when you want to give the text to this caption write this code...
    data: lo_nd_cn_pernr        type ref to if_wd_context_node,
            lo_el_cn_pernr        type ref to if_wd_context_element,
           lv_ca_pernr type String.
      lo_nd_cn_pernr = wd_context->get_child_node( name =
                                                 wd_this->wdctx_cn_pernr ).
    *get element via lead selection
      lo_el_cn_pernr = lo_nd_cn_pernr->get_element(  ).
    *set single attribute
    lv_ca_pernr = 'Hello'
      lo_el_cn_pernr->set_attribute(
        exporting
          name =  `CA_PERNR`
          value = lv_ca_pernr ).
    regards
    Pranav

  • Disabling/Hiding form elements

    Is there any concept of disabling or hiding elements in a form on the fly that could be done on a MIDP 2.0 phone? For instance, hiding a text box unless user clicks a button which displays the textbox.
    Any help appreciated.
    Thanks,
    Karl

    There's no method for hiding the elements directly, but it would be easy to implement: have a reference to the element you want to hide/show, and just delete() it from the form object to hide, and insert() (insert() and not append() so you can push it back to it's old position on the form) it back to show.
    shmoove

  • Disableing of FPM Button at runtime

    Hi All,
    I am having a requirement where i have to disable a FPM Button at runtime. I created a button through configuration & this button should be desabled at runtime.
    Thanks & Regards.
    Shafiq Ahmed Khan.

    Hello Shafiq Ahmed Khan,
    The below mentioned class will help you to set the visibility property of FPM button.
    Class: CL_FPM_CNR_OIF
    Method: IF_FPM_CNR_OIF~DEFINE_BUTTON
    Use exporting parameter: IV_VISIBILITY
    Set the visibiltity property to abap_false
    Please dont forget to give REWARD points..:-)
    Thanks,
    Bharath.K

  • Elements 7 Runtime Error

    "Runtime Error!
    Program: ...Adobe\Photoshop Elements 7.0\PhotoshopElementsEditor.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information."
    It has worked great for a month. Got 2 books on Elements 7 for Christmas and now it crashes as per above, whenever I open a photo. It does not crash until I open a photo.
    Running Vista Ultimate SP1. Since I last used the program I updated the PhysiX driver, and installed a game called "Ship Simulator 2008".
    I will try rolling back the driver. Not sure what else to do. I uninstalled and reinstalled the software, with no luck. Suggestions? This is so disappointing!
    Thank you!

    It's back!!!!!  Both Elements 7.0 and Lightroom 2.4 are crashing.  I have been using them heavily the last couple weeks going through the 1000's of photos I have colleced over the last few years.  Suddenly, "Adobe Photoshop Elements (Editor) has stopped working."  I installed no software, updated no software, installed no drivers.  I went through all the steps I went through last time, including reinstalling with the anti-virus software disabled, without suceess.  I ran the "licensing repair tool" (for CS3?) three times.  I am not running Microsoft Intellimouse.  I really do not want to do an OS re-install as everything else is and always has run very solidly.  Running Vista 32 bit.  I will probably install a new Solid State Drive with Windows 7 when it comes out as a dual boot and slowly migrate everything over to it, but I can use some more suggestions in the mean time!  Is PSE Version 8 around the corner??
    Update:  Lightroom 2.4 is working great....
    Update #2:  I followed the procedures I saw to do a complete cleaning of Elements.  Well, I did a complete one alright.  Removed PSE 7, Premiere Elements 7, Lightroom 2.4, and Reader.  Went into the Registry and killed any reference to Adobe, then into the Windows Explorer and killed any reference to Adobe in the /applications and /user folders.  Then I emptied the trash and rebooted.  I then used AusLogics Registry Defrag and rebooted.  I just re-installed Elements 7 and it works!!
    This is certainly challenging, but I beat the hell out of Elements and Lightroom so it is worth it!
    -Hagar

  • How to disable one single element in a 2D array?

    Hello,
    I would like to disable one element in a 2D array. its size is constant at least.
    I can change its value by using a 1D array of cluster, but I can't use the property mode easily to disable an element.
    If you have any idea, it will be great.
    Thank you for your help.
    Lolopuf

    Right click on the particular control you want to disable and change the properties on that.  To do it programmatically, create a reference for that specific control and set the Disabled property for that.
    Attachments:
    Example_VI.png ‏15 KB

  • Adobe Elements 10 Runtime error message, help!

    My Adobe Elements 10 was JUST working 15 min ago, and now when I try to launch it I get this error message: "Runtime Error!" "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."   I have re-started my computer, and have checked for updates but don't see any recent ones. What do I need to do here? I need Elements to do my work, right now.

    The first thing to do when behavior suddenly changes like this is to reset the application preferences. Simply rename the preference file listed here and then retry: Preference file locations | Photoshop Elements and Premiere Elements

  • Elements 9 runtime error

    I keep getting a runtime error on Elements 9. I am over it. I have searched the forums and no body is getting a solution from what I can see. I did nothing to my computer, it just started giving me an error one day and has never worked since then.

    Help! please I tried to follow another forum, saying copy and paste this error, but where ?? super lost...
    Log Name:      Application
    Source:        Application Error
    Date:          3/17/2015 10:41:13 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      VirginiaRoss-PC
    Description:
    Faulting application name: PhotoshopElementsEditor.exe, version: 9.0.3.0, time stamp: 0x4d906921
    Faulting module name: AXEDOMCore.dll, version: 3.3.402.1, time stamp: 0x45f081f6
    Exception code: 0x40000015
    Fault offset: 0x0005d9b1
    Faulting process id: 0x25ec
    Faulting application start time: 0x01d060c05b556676
    Faulting application path: C:\Program Files (x86)\Adobe\Photoshop Elements 9\PhotoshopElementsEditor.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Photoshop Elements 9\AXEDOMCore.dll
    Report Id: a853959b-ccb3-11e4-ad1a-f04da269e4ae
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-03-17T14:41:13.000000000Z" />
        <EventRecordID>318548</EventRecordID>
        <Channel>Application</Channel>
        <Computer>VirginiaRoss-PC</Computer>
        <Security />
      </System>
      <EventData>
        <Data>PhotoshopElementsEditor.exe</Data>
        <Data>9.0.3.0</Data>
        <Data>4d906921</Data>
        <Data>AXEDOMCore.dll</Data>
        <Data>3.3.402.1</Data>
        <Data>45f081f6</Data>
        <Data>40000015</Data>
        <Data>0005d9b1</Data>
        <Data>25ec</Data>
        <Data>01d060c05b556676</Data>
        <Data>C:\Program Files (x86)\Adobe\Photoshop Elements 9\PhotoshopElementsEditor.exe</Data>
        <Data>C:\Program Files (x86)\Adobe\Photoshop Elements 9\AXEDOMCore.dll</Data>
        <Data>a853959b-ccb3-11e4-ad1a-f04da269e4ae</Data>
      </EventData>
    </Event>

  • Disable macros warning on Access Runtime 2003 via gpo

    Hi guys,
    My users are using Microsoft Access Runtime 2003 to access our database and I was wondering if there is a way to disable the warning message through a group policy?
    Thanks!
    Ro
    This topic first appeared in the Spiceworks Community

    You should be able to do this by a GPO by adding a new registry item as below.
    32-bit OS:
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Access\Security]
    "Level"=dword:00000001
    64-bit OS:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\11.0\Access\Security
    "Level"=dword:00000001
    See https://technet.microsoft.com/en-gb/library/cc753092.aspx for info on how to this (if you require it)

  • Disable URL-Mangling in BSP Runtime

    Hi Experts,
    we decided to provide some web applications für mobile devices. Currently (and maybe never) WD ABAP does not support mobile devices. Therefore we are looking for alternatives.
    There are a lot of threads in the net where other people discussed the same topic and several decided to use BSP. We wanted to use BSP and jQueryMobile but we noticed that there are some problems because of URL-Mangling / rewriting.
    Do you have any idea if it is possible to disable URL-Mangling without modification? We already thought about an own request handler in TA SICF but in this case we also need an own CL_BSP_RUNTIME (to disable the coding in method on_check_rewrite). However this is difficult because some standard BSP runtime classes (RUNTIME, NAVIGATION...) are marked as final, so it isn't possible to inherit from them and we don't want to copy / redevelop all relevant classes.
    Furthermore there are other disadvantages like:
    - many redirects (problematical with low-bandwidth connections)
    - client cookie handling is more difficult
    Do you have any idea?
    Kind regards
    Danny

    Hello!
    I've done quite a lot of BSP development together with and without javascript frameworks like jQuery. It's possible to create a scenario without URL mangling if you set the system architecture in a specific way. I could speak a lot about this setup as it works really well! Here is a quick guide to get started:
    Step 1:
    The BSP runtime isn't really used at all. Create a BSP application but only store MIME objects in it. The MIME objects isn't URL mangled! The drawback is of course you can't do server side ABAP in your HTML documents. On the positive side, any Web Developer can create the HTML and javascript without ABAP programming skills. SAP functions as a static web server with all the benefits of the ICM cache and transport system.
    Step 2:
    Add an external alias in SICF for the BSP application. Like pointing "/myapp" to "/sap/bsp/sap/zmyapp_v001". The external alias is configured with a service account (without any authorizations) with authentication set to "Required with Logon Data". All fields should be specified (Client, User and Language). Now, any anonymous user can request the HTML files without interfering with logon data.
    You don't need an external alias, but they come in handy to have nice-looking URLs; the possibility to change their target when you have multiple versions at the same time; and you can create multiple alias for the same application with different logon data. Like "/myapp/english" if you want. Or "/myapp/client800". Or "/myapp/latest", "/myapp/version1" etc.
    Step 3:
    Create a custom HTTP handler for your business data and assign it to a node in SICF. For example "/customers/orders/get" or whatever you find appropriate for your app. Since you now have your own handler, the BSP runtime isn't involved and no URL mangling exists.
    The handler returns data in a suitable format for Web Developers (read: JSON).
    Protect this node with security that matches the flexibility required from the frontend. I usually set another service account for this service and handle authorization myself; returning HTTP status codes like 403, 200 to the Web Developer (but not 401 as it's quite difficult to handle in AJAX scenarios). In it's most simple form you can provide username and password as form fields and perform a user switch in the handler for every request, effectively changing SY-UNAME in the handler ensuring that the correct user context is used.
    Best regards,
    Mikael Gurenius
    SAP Solution Architect (Mobility)
    PS: MIME objects are of course served with URL Mangling if referenced relative to the BSP application. You can avoid this (for example for the Apple icons) by always linking your MIME objects from the root. Get the application path using code or type manually. Like
      <link rel="apple-touch-icon-precomposed"
    sizes="57x57"
    href="<%= lv_path %>/icon_57x57.png" /> where lv_path is "/myapp/images" or "/sap/bc/bsp/myapp/images". If you do this, you can have URL Mangling (and do ABAP development) in your BSP pages but still have "clean" URLs for MIME objects.

  • Disable Adobe Premiere Elements 10 Auto-Analyzer

    To complete an elements software update I have to disable the Auto analyzer. But the reason I'm trying to do the update is because the elements constantly thinks it's busy and won't allow anything to work, so I can't get to the elements organiser which is busy to turn the analyzer off. catch 22. What going on?
    Any ideas please. thank you.

    I just changed from PSE 11 to 12. With eleven all was fine with the auto analyzer, but with PSE 12 it has become a real pest -using lots of RAM and > 25% of CPU.
    Though I unchecked all options the Auto Analyser started every time I opened PSE 12. I also checked the autostart options and the Registry. Finally I renamed the Program, similar to this instruction: http://barbarabrundage.com/2013/10/31/the-elements-12-auto-analyzer-adobes-evil-undead/
    This works, but that cannot be the only sulution (apart from using the old version).
    I hope someone has a good solution for this annoying part of PSE 12

  • Elements 10: Runtime Error!

    I've been using Photoshop Elements 10 for about a year now with NO problems and GREAT satisfaction. When I tried to launch it yesterday and today (several times both days) I got the message shown
    Runtime Error!
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    The program then terminates.
    Thank you for your help ~ I really MISS this program ;>)
    Geri

    Thanx for the input ~ I tried both suggestions. The Welcome Screen / Edit button DID bring up the "Delete Adobe Photoshop Settings File"; I clicked "Yes" and the same Error came up so I started the program again and everything looked good, so I checked the "Don't show Welcome screen" and the launch proceeded but then brought up the same Runtime Error.
    Holding down the Ctrl+Shift+Al keys while double clicking on PhotoshopElementsEditor.exe brings up the Properties dialogue box, but none of the tabs gives the option "Delete Adobe Photoshop Elements Settings File?"
    I'm running System 7 Home Premium 64-bit
    Anything else I might try?
    Thanx Much ;>)
    Geri

Maybe you are looking for

  • How to delete photo's from both Iphoto and source (external HD) at the same time

    I've seen a few postings on this but none seem to answer the quetion.  Sorry if this is a duplicate and I coudn't find the answer. I have an external HD with over 4GB of pictures in various folders and subfolders.  I would like to import one folder a

  • How to read a C structure with string and int with a java server using sock

    I ve made a C agent returning some information and I want to get them with my java server. I ve settled communication with connected socket but I m only able to read strings. I want to know how can I read strings and int with the same stream because

  • Why java is called java2

    why java is called java2 and another thing that i would like to know is why it was renamed to java from its previous name OAK Thanx Manish

  • Is it possible to lock individual text messages to prevent deletion?

    Is there a way to lock an indiviual text message (iMessage) and prevent it from being deleted when the rest of the thread is deleted?  Sometimes I want to keep certain messages because they are just too funny to get rid of!

  • Mdm to xi settings

    hai friends iam creating mdm to xi scenario in that i have one probs. iam not under standing which type of bussiness system,technical system  i have to take i am think ing that third party object but how to configure the mdm in xi  that and any setti