How do  we check the check box items based on the databse fields.

Hi All,
I have a requirement like as mentioned below#
1. I have a combox box whcih i will be populated from database.
2. I have created two check box as "Stategric " and "Non Stategric".
3. Now when i select the combox box condition i need to select the check box items.
4. But the problem is i wil be knowing weather it is a stategric or Non stategirc based on the database column.
5. How do i need to map the database point of view and correlacte with javascript pont of view.
6. Do we need to write any Application process to achieve this task and who we can do that.
Thanks,
Anoo..

Hi VC,
As per my understanding the code should be placed between --.
Based on this i have placed the code
function setCheckbox(pThis, pItem){
alert('inside');
    var l_code = '';
    // Get checkbox name
    rName = document.getElementsById('P1_ENG_BAU').firstChild.name;
alert("The value is"+rName);
    // Fire AJAX
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CHECKBOX_LIST',0);
    get.add('F120_COMPANY',pThis.value);
    gReturn = get.get('XML');
    if (gReturn) {
      var values = gReturn.getElementsByTagName('value');
      var messages = gReturn.getElementsByTagName('message');
      // Build the checkbox
      for (i=0; i<values.length; i++) {
        var rValue = values.firstChild.nodeValue;
var rMessage = messages[i].firstChild.nodeValue;
l_code+='<input id='+P1_ENG_BAU+'_'+i+' type=checkbox value='+rValue+' name='+rName+'>';
l_code+='<label for='+P1_ENG_BAU+'_'+i+'>'+rMessage+'</label>
document.getElementsById('P1_ENG_BAU').innerHTML = l_code;
Correct me if iam understanding is wrong.
Thanks,
Anoo..
Edited by: Anoo on May 31, 2012 11:04 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to edit the list box items in labwindow/​CVI?

     how to edit the list box items in labwindow/CVI?

    Listbox items cannot be edited directly in the control: what you can do is to select a line an, transfer its content to a textbox control, edit text there and move text back to the listbox control. Available interactions with the listbox control are listed in the help.
    An alternative to it is to use a tree customized to appear like a listbox: tree item labels can be edited directly in the control, at least those in the base column of the tree. You can look at the example \samples\userint\treelist.cws that shows how a tree can be customized this way. I haven't opened it, but this old example too should show the ability to edit tree cells.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How to render web items based on the authorisation profile of the user

    Hello,
    Is there any way to render web items based on the authorisation profile of the user. The only way i can think of is:
    - Write ABAP to look up into the security mapping tables.
    - Convert the ABAP report into RFC-Enabled FM. The selection variables will be part of the import/export parameters of FM and table can be used to display the result.
    - Create HTML template using WAD, write Java Script to call the FM and map the import/export parameter. Display the result in Table.
    But i don't know How to use the Java Script to call Function Module (FM) and get back the authorization through parameter.
    Is anyone know about it or is there any other method to do it? I can't find any solution and it is very critical for me.
    Any help is highly appreciated.
    Rajat

    Hi Rajat,
    Do you mean that you want certain users to be able to use only certain web items? I think you can use the libraries for that and assign them to roles:
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/0f813b420ce60ee10000000a114084/content.htm
    Hope this helps...

  • Just moving from PC to Mac. How do you select a group of items. On the PC it was shift right click

    Just moving from PC to Mac. How do you select a group of items. On the PC it was shift right click

    In list or column view, click the item at one end of the range and then shift-click the item at the other end.
    In icon view, click on an empty part of the window and drag to select them.
    (113533)

  • HT4095 What happens if the genre box goes missing on the top left corner on your iPad? How do I get it back?

    What happens if the genre box goes missing on the top left corner on your iPad?How do I get it back please help me.

    Try quitting iTunes and restart your iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    You can also try a reset if quitting the app doesn't work.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • How to change the number of items displayed on the screen based on user input

    I need to place a number of input clusters on the user's screen based on the number of input types he will have.  Is there an easy way to do this?  (Say I have 3 different electrodes, I want to be able to add information for each then take this information and add it to a database, this case adding three new record sets to the database.  If I only have one electrode though, I only want one cluster on the screen and only one recordset will be added to the database)
    Message Edited by Vitamin on 01-11-2007 12:36 PM

    Place your clusters in a 1D array and create a property node for the array. You can use the Number of Rows property to control how many elements are shown. Wire the array into a for loop to index it.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • How to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot controlled with mouse, returns auto to top of scroll slide, never remaining at bottom

    how to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot be controlled with mouse, scroll bar returns automatically to the top of scroll slide every time I move the bar to the bottom of the scale.  Also, there's a rectangular text box (with black background and white text) that is always on the desktop that emulates a typed text, HTML, or cmd function.

    cjuan1morb4ulv wrote:
    how to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot be controlled with mouse, scroll bar returns automatically to the top of scroll slide every time I move the bar to the bottom of the scale.  Also, there's a rectangular text box (with black background and white text) that is always on the desktop that emulates a typed text, HTML, or cmd function.
    The first two problems (box cycling from element to element on page, scroll bar returning to top) can be caused by a stuck (or defective) Tab key on the keyboard. Such damage can be caused by a liquid spill; just one tiny droplet is enough to short a wafer switch under one key.
    The last issue (black box, white text - sounds sorta like a debugger window) I haven't seen, but could be caused by something similar.
    To check for that, try using a different keyboard. If you're using a wireless keyboard, turn it off and see if the oddities stop.

  • In mini bridge is there anywhere that states the number of items currently in the filmstrip?

    Hello,
    In mini bridge is there anywhere that states the number of items currently in the filmstrip?
    Thank you.

    Hi,
      There is no limit on no of items in a list box.
    Check in the properties of the list box whether you gave the source data, destination properly.
    And also under the bahaviour tab set "insert on" property on mouse click.
    Hope this helps
    uma

  • Problem with finishing install of Flash Player on a Mac. When finishing by entering the requested password, the dialog box jiggles as if the p/w is invalid. But it works in the Adobe site.

    I am trying to install Flash player on my Mac. All the steps are working as they should, until the point where I am asked to enter my password. I do this, and the dialog box jiggles as through  the p/w were invalid. However, it works to sign in to the Adobe site. I just changed it to be sure and checked again.

    There is no password required to download or install the Flash Player.  Chances are your Mac is requiring you to enter its password to allow the installation to occur.

  • I am trying to install Lightroom and I am OK until it asks for a serial number. I purchased Lightroom from B&H and the have entered the seal number on the the B&H invoice. Nothing happens, not all the entry boxes are filled with the serial number that was

    I am trying to install Lightroom and I am OK until it asks for a serial number. I purchased Lightroom from B&H and the have entered the seal number on the the B&H invoice. Nothing happens, not all the entry boxes are filled with the serial number that was provided by B&H. I looked for a serial number on and in the box it came in, nada. Need a bit of help here, what can I do?
    RJ@

    Try to connect on Live chat one more time.
    Still not connected , better to contact Adobe Phone Support
    Click on Phone option and check once :
    Contact Customer Care

  • Changing the status of the sales order item based on reason for rejection

    Hi All,
    When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
    I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
    Regards,
    S.Subasree

    Hi subburamaiah
    If you want the report you can create a separate SIS report . In that take the input field  as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
    Regards
    Srinath

  • The settings box is always in the middle of my screen when using Flash Player , Won't close?

    The settings box is always in the middle of my screen when using Flash Player , Won't close ?

    See:How do I do a clean install of Flash Player?
    It should work ok after that.

  • What is the use of item usage in the item category determination.

    Hi,
    What is the use of item usage in the item category determination.
    can any one please give me config setting where from actually the system will take the item usage and background functionality
    thanks
    Kuntla

    hi,
    thanks for the answers,
    Then how the system will no that it is a service item , or it is a free item.
    the above can be done in item category.
    then what is the user of item usage
    thnaks
    kunlta

  • How to findout the clearning document number based on the reference

    Hi all
    we  need to findout the clearning document number based on the reference number in financial transaction code.
    basically we know how to retrieve the data from table level using BKPF without non primary key as XBLNR but
    we  want to know is this any function module to retrieve the document number based on the reference number like XBLNR.
    Please confirm.
    Thanks
    K.Gunasekar

    you can get it from BSAD too. but again its not a primary key

Maybe you are looking for

  • Video not playing in Keynote on iPad

    I have transferred a keynote file prepared on my iMac to my new iPad and one of several video clips does not run. All the clips came from youtube and were edited in iMovie. Can anyone suggest why one clip fails when the others, prepared in the same w

  • Issue with document library and explorer view

    Hello, I have couple of issues on which I need some assistance. We recently backup and restore the SharePoint portal based on 2007 to SharePoint 2010 server.We're facing some issues on it now  When we try to open any office document from a document l

  • "Detect some error during PININST_BB​V."

    I am still working on the recovery from this problem which AxshunJaxun was able to help me correctly diagnose. I have since received Recovery Media from HP and purchased a new HDD which should be an improvement over the factory part. And, I have spen

  • StatusCode values for web service call?

    I am trying to check the status of a long-lived service using a web service call from a .NET application. I therefore don't have access to the java libraries where the StatusCode constants (enumerations?) are defined. Can someone either tell me a .NE

  • Can we install multiple oracle product in same oracle home

    hi, It would be appreciated if any one can answer below: Is it possible to install multiple oracle product in same oracle home? thanks