Enable Inputfield in the table column even though the column is empty

Dear Experts
How to enable or disable a table column(it is an inputfield) dynamically.
I done this and strugling to proceed from this point
DATA lr_container TYPE REF TO cl_wd_uielement_container.
  DATA lr_table     TYPE REF TO cl_wd_table.
  DATA lr_view      TYPE REF TO if_wd_view.
  DATA lr_child     TYPE REF TO cl_wd_uielement.
  data : lr_col TYPE REF TO  CL_WD_TABLE_COLUMN.
  data : lr_inp TYPE REF TO cl_wd_input_field .
  lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
  lt_children = lr_container->get_children( ).
  CALL METHOD lr_container->get_child
    EXPORTING
      id        = 'ITEMS_TABLE'
      index     = 1
    RECEIVING
      the_child = lr_child.
  lr_table ?= lr_child.
CALL METHOD lr_table->get_column
   EXPORTING
     id         = 'ZVPN_IT_INP'
     index      = '6'
   receiving
     the_column = lr_col.
Upto this the code is working fine as per the requirement .Now the thing is in that in column we r having an input field which should be enabled dynamically
Regards
Arun

Hi Arun.,
For enabling and disabiling any field on the view, there is only procedure.
1. Make an attribute of type 'ABAP_BOOL' in the context.
2. Bind the enable property of the UI element to this attribute.
3. Enable or Disable the UI element in the code.
So for your question you can follow :
1. Make an attribute 'ENABLE' in the context node bound to the table. Type ABAP BOOL.
2. Bind 'ENABLE' property of the desired input field with this attribute.
3. In WDDOMODIFYVIEW check your condition and based on the condition use set_attribute method of if_wd_context_node to change the value to 00 - None or 01 - Enabled.
I hope your question is answered.

Similar Messages

  • Not to show the detail records even though the mater records are existing.

    Dear Oracle
    I would like not to show the detail records even though the mater records are existing. Is there any block preperty I can set?
    Thanks

    I don't know the reason why you would want to do that but if you do not want to any record in the master block in
    a master-details format, then you could achieve this by setting the WHERE clause property in the block.
    e.g., master block DEPT (base table DEPT) and detail block EMP (base table EMP)
    table DEPT is as follow
    dept_id (pk)
    dept_name
    table EMP is as follow
    emp_id
    emp_name
    dept_id (fk)
    then you can set the WHERE clause in the DEPT block as follows
    exists (select 1 from emp a where a.dept_id = dept.dept_id)
    hope this help

  • HT1725 My purchases are only playing halfway through the song then they jump to the next song even though the download has been completed "successfully". Does this mean an incomplete download? How do I rectify this? Please help

    My purchases are only playing halfway through the songs then they jump to the next song even though the download has been completed "successfully" Does this mean I have to repurchase and download again?

    Delete and redownload.
    You do not pay for redownloads.  Follow the direction:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Why do I have to sign in to the app store even though the download is free?

    why do I have to sign in to the app store even though the download is free?

    Because all content that you download from the iTunes stores is coated with your Apple ID.

  • OniPhone 6 Plus. Connectinge 6 Plus. Connecting Bluetooth to my Prius bluetooth has been successful However, I am unable to answer or place calls via the bluetooth connection even though the connection has been established. Can anyone help with this?

    With my new iPhone 6 Plus. Connectinge 6 Plus. Connecting Bluetooth to my Prius bluetooth has been successful. However, I am unable to answer or place calls via the bluetooth connection even though the connection has been established. It worked well with my previous iPhone 4S. Can anyone help with this?

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Can I get back the original filename even though the file is missing

    I imported 900 RAW images from my desktop into Lightroom, edited them, renamed the filename, and exported them into JPGs. Since I no longer needed the RAW images on my desktop I moved them over to an external hard drive. So now the images are still visible in my Lightroom catalog, but there is no photo to back it up since I moved the original files to the external hard drive. After realizing that I exported the images at 150 dpi instead of 300 dpi I need to re-export the images from lightroon at the proper resolution. But since I moved the originals to the external hard drive there is no photo to back it up in lightroom anymore. So I went to locate the files by clicking on the  "?"  but since I renamed the file when I exported them, the original filename on the external hard drive is now different from the filename in the catalog. Is the only solution to locate the file one by one?  Is there any way I can do them all at once even though the original filename is different from the filename in my lightoom catalog? The original filename is still listed in the metadata, but since the originals are missing it can't change it back.  Please help!

    It sounds as though you moved the files and renamed them outside of Lightroom.  Not a good idea.  I'm not really going to answer the question about retrieving the files.  But if your only concern is the resolution then I wouldn't concern myself about changing the images.  That resolution setting really has no impact or effect of any kind on your images.  It doesn't change the size, or the quality at all.  If you have an image that is 2000x3000 pixels (for instance) it will be that same size regardless of what the resolution setting is.  The only real value that setting has is to give another user an indication of the intent for the image.  When you look at an image in Photoshop and look at the image size feature, Photoshop will tell you the dimensions of the image at that resolution, but that doesn't change anything about the image.

  • My wireless earbuds work just fine, but some third-party apps play audio only through the iPod speaker even though the buds are properly connected.

    My wireless earbuds work just fine, but some third-party apps play audio only through the iPod and iPhone speaker even though the buds are properly connected. Does anyone know why and is there a solution?

    Assuming you are using Bluetooth headphones, do the apps have the option to use Bluetooth?
    The app should have an option to select the speaker (or wired earphones) or the Bluetooth headphones.
    You can also try:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site if only one app.
    Restore from backup. See:
    iOS: How to back up              
    Restore to factory settings/new iPod

  • HT4990 When I try to download an app it is asking for the billing address even though the app is free and then it does not accept post code

    When I down load an app it is asking for a billing address even though the app is free after I enter the required details it does accept the post code

    Try to set it up as new device, explained here:
    How to back up your data and set up as a new device
    Start without using the backup after the restore process, to rule out a software problem.
    If the phone is working after that, use the backup to restore from. In case the problem comes back, your backup contained corrupt data and you'll have to start again without the backup.

  • Why, when I make a table in a Thunderbird message, does it now make everything within the table larger, even though it doesn't look like that on my computer?

    I have been using Thunderbird to send e-mail newsletters to members of an organization I work for. To do that, I have been using tables to make a coherent looking newsletter. Suddenly, sometime recently in an update or something, ALL OF THE TEXT that is inside the table comes out larger when it is sent. So all my formatting goes to hell. Anything that is OUTSIDE a table, however, looks the same as when I typed it, so it isn't the general formatting of Thunderbird. I have to save everything as a draft (several times, usually) just to try to get it to look right.
    I am including two screenshots to illustrate what I mean. The first, called "compose.jpg" shows how I had to adjust the font size to make the tables work as I had intended. This is what I see when I am composing an email newsletter, not the larger font that appears once the email is saved. The second, called "draft.jpg" shows how this same (exact) email looks when it is saved or sent. (This one is saved as a draft.) Notice that the text at the bottom of the message has NOT been enlarged because it is outside the table.

    No, the signature is not the issue, it is only an example of the issue. Compare the text size in the "compose" image with that in the "draft" image. For whatever reason, text placed in a table is magnified to be much larger than what I see when I compose it. But ONLY in a table. This means that I must juggle the size of the text after I prepare an e-mail newsletter (using tables for formatting) or it won't look like I expect it to.
    This only began to happen sometime late last fall, which is why I wonder if it came as a by-product of some update. What I would like is to be able to specify that the text size I enter in the table remains that size when the email with the table is sent, preferably as a permanent specification, and not necessary every time I do one of these.

  • How PIR's are consumed by the customer requirements even though the sales orders are blocked?

    Dear experts,
    I am using strategy 40 for material A with Backward/Forward consumption of 60 days backward and 60 days forward.
    My PIR is as follows :-
    Material Month #1 Month #2 Month #3 Month #4 Month #5 ....
    material A 100 100 100 100 100 ....
    I created a Sales Order for material A with the quantity of 600 in Day 4 of Month #1.
    After MRP run, planned order conversion and production order has been completed.
    Month #1, Month #2 and Month #3 PIR's are consumed even though we made the setting in Such a way that the sales orders should just display but not planned  . and the sales orders are into the blocked requirements list in the result of /n/afs/MD02.
    1)but why it is consuming the PIRS?
    2)is there any affect of backward and forward consumption on this?
    Thanks in advance.
    Regards
    Bhargavi Desai

    Hi,
    Normally it is recommended that, not to delete PIR's one by one or remove quantity from previous periods/ requirement manually. If the PIR's of previous month is not consumed it is normally a feedback to sales people to do a analysis at their end.
    In PP point of view, normally a re-organization run is carried out by MD74, MD75 or MD76. The same can be done by  scheduling batch job to run on month ends basis w.r.t. period you specify.
    Regards,
    Narresh

  • Truncates the leading zeros even though the member is text type

    We have members with data type “TEXT” in planning database. When user enters something with leading zero, it saves the same in relational but not showing the same in planning. It truncates the zero even though it is a text member.
    Planning version 11.1.2
    Example:
    Member name : Issue code (TEXT type)
    Entered value : 011_Issue (saves the same in relational)
    Display value : 11_Issue (Drops the zero)
    is there any workaround?
    Thanks

    I've opened a SR and here is the reply from MOS.
    Apply a fix for Bug 12422049 - DATA TYPE TEXT MEMBER DOES NOT DISPLAY VALUE STARTING WITH ZERO CORRECTLY when its available.
    The issue has been identified as a code bug and development team will fix it in future releases.
    Thanks
    Poorna

  • I have been editing project for two weeks and now I get ghosts of other images fromt eh project coming up in the wrong places even though the thumbnail looks right. Help.

    Help. I have been editing a project for two weeks and now it gets ghosts of ohter images from the project coming up in the wrong places. The thumbnail has the correct image but the image either does not display and its black or an old image or another one shows.

    When I have problems like this I do two things. First I shut down and restart iMovie. Sometimes that rejuggles the date. But I am sure you have been doing that in such a long project.
    The Second thing I do is delete iMovie preferences, which can get corrupted.
    Home-library-preferences-com.apple.imoviepref
    Hugh

  • Dear Community, i recently bought a macbook pro with retina display and i have been seeing some issues lately regarding the headphones output , even though the headphones are plugged in the output shifts to external speakers again again , help needed

    i need help or a working solution , apple call here

    Luckily I reinstalled the software and the problem just disappeared , and now for all those facing the same problem after reinstalling mountain lion don't update to 10.8.1 , cause only after that update earlier was when the problem started showing up , along with that don't reinstall lion using your recovery on your harddrive it takes 23 hours to install because it downloads the software first and then does all the installation so just download the app for mountain lion from the AppStore first and then make a bootable USB installation disk out of it , I'm sure you'll find a tutorial on google on how to make a recovery USB out of it , as for your data and stuff I moved all my stuff to an external hard drive and then performed a reinstall I recommend you do the same . The steps are simple after making the USB insert it and then reboot when the computer turns itself on press the alt/option key and then their will be a list of options there you will see your mt lion USB boot into it , select disk utility and then your Macintosh HD , WARNING IN THIS STEP YOU WILL ERASE YOUR HARD DRIVE COMPLETELY MAKE SURE YOU BACKUP ALL YOU DATA BEFORE PERFORMING THIS STEP I WON'T BE RESPONSIBLE FOR ANY DATA LOSS DO THIS AT YOUR OWN RISK, so choose your drive , go to the erase tab choose Mac os extended journaled usually the first option from the drop down menu and name it Macintosh HD again click on erase and then after thats done close the utility , now select the option to install mt lions copy from the first menu and then chose your Macintosh HD that we erased eirlier and install, it takes about 20-40 mins depending on your Mac and then viola the problem will disappear , well at least it did for me . Here is the link on HOW TO MAKE A LION RECOVERY USB
    http://gigaom.com/apple/quick-tip-create-a-usb-installer-for-mountain-lion/
    Hope This Would Definetly Work For you =D...........

  • I lost my original disk for photoshop 7... I need to update.. it won't let me.. and keeps asking for the disk.. even though the program is on my pc... How can i get my update?

    I have photoshop 7 on my pc but have lost my original disk.... I went to update it and  the update is not seeing the file on my pc... and it keeps asking for my disk.. but i can't find it...
    How can i update it...

    Ah, you had Photoshop 7.0 working, and now it's not.  I see that as a separate issue to updating it.  I'm not sure why it would ask you to update it.
    Do you know whether you have 7.0 or 7.0.1 at this point?  You might be able to do a Properties function on Photoshp.exe and see that info.
    You could make an attempt to reset Photoshop's preferences to defaults.  Press and hold Control - Shift - Alt simultaneously immediately upon cold-starting Photoshop. If you get the keys down quickly enough - and you have to be really quick - it will prompt you to confirm deletion of your current preferences, which will lead to the establishment of a fresh default set.  If it does not prompt you, you haven't been quick enough to get the keys down.
    Only other thing that comes to mind is to use Windows System Restore to restore back to a restore point where Photoshop was working, or restore from a backup (you do make backups I hope).
    If that fails, and you need to do a fresh install but no longer have the original disk and serial number I'm afraid you may be out of luck.  There's no place I know of from which to download a fresh full copy of Photoshop 7.0.
    -Noel

  • When I move to the next record on a form it shows the entries for the previous record even though the record is actually null

    I have a form that logs fibre analysis for asbestos analaysis. Let's say I am analysisng 2 samples. I log all the details for the first sample and hit save. Now I use the scroll button to move to the next sample. When the screen refreshes all the entries for the first sample are still showing on the screen. But these are just phantom entries, when I look at the back-end database there are of course no entries against the second sample. This does not occur with any other browser.
    I have tried clearing the cache to no avail.
    Any ideas?

    Is Firefox filling the form via the cache or via saved form data?
    If this data still gets filled when "Remember search and form history" is disabled the Firefox fills it from the cache.
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": "Remember search and form history"
    In such a case a hard refresh via Ctrl + F5 might help to reset the form data.

Maybe you are looking for

  • Multiple report

    Hi All, i have a question. I create a simple report with Crystal Report Basic 2008 for SAP Business One (only with Text). About Manage Crystal Report i added the report into SAP Business One. When i click "Preview and Print" - Button, the following M

  • Iphone 5 Reboots on its own after ios 8.1 update

    Has anyone had this problem as well? after updating over wireless my iphone 5 started rebooting at odd and random times mostly while im using the phonei.ve restored it on my mac but the problem still persists can anyone help me?

  • Links in Mail signature not working, please help me

    I have created the signature in preferences + added the links when I go to create a new message the signature is there and formatted BUT NO LINKS do you know why this would be happening?

  • Apple pro speakers specs?

    can anyone tell me the specifications of the apple pro speakers (the clear round things)? im having to upgrade from them and wanted to get something with at least the same output as these great little speakers so would love to know the specs to match

  • Custom build process - get build parameters

    I'm using TFS 2013 with build process template: TfvcTemplate.12.xaml. I created my own activity and I need to send it some input parameters that include the following data: 1. source path (for example: c:\a\src) 2. binaries path (for example c:\a\bin