Accessing one htmlb tag by another

How can I access one tag by another.
So once the user selects an option from a dropdownlist, javascript gets executed that stores what the user has selected into a hidden inputfield.
I need another dropdownlist to be able to read what has been written into that inputfield. Is there a way I can access the inputfield from the second dropdownlist tag ?
Thanks

There are a couple of methods that will enable you to do this: -
1) (possibly the simplest) Have the input field as standard HTML tag as you can have both HTMLb elements and normal HTML in a JSP page. Then you can reference the element by using the standard document.getElementById('<tagid>').value
2) (Slightly more complex)
   Have this type of thing at the top of the JSP page "<%String inputId = null;%>". This is the variable that will store the ID of the inputfield (or any other HTMLb element).
   Then, to set this field to the value required
   <hbj:inputField
    id="myfield"
    text="Click Here"
    tooltip="Click Here"
    disabled="false"
   >               
   <%inputId = myContext.getParamIdForComponent(myfield);%>
   </hbj:inputField>
   Then, you should have some javascript like this
alert(document.getElementById('<%=inputId%>').value);
   Please note that this Javascript normally has to be after the set up of the innput field so that the inputId field is filled in before the javascript is executed
I hope this helps
D

Similar Messages

  • Access one user to project another user

    Hello,
    I have another question. How can one user access to a project of another user?
    User X have Project A
    User Y have Project B
    How can user "Y" access to project A?
    Help, please.
    Thanks.

    Thanks for the inputs Sreenivas.
    Are you aware of any authorization objects which can restrict access to Networks, Activities, Material components and Milestones, using 'Person responsible' or any other suitable field? I hope you got what I am looking for.
    Restricting WBSE based on 'Person responsible' without restricting sub-ordinate elements is not much useful according to me. It helps only with simple project structures (having only WBSE) and nothing much. Right?
    Thanks again

  • How do I move or copy the contents of one tag to another ?

    No-one was able to answer my question about how I can input data into the Description tag for several tracks at once (Description not being a field listed in the Multiple Item Info window).
    So, thinking along different lines ... Comment IS a tag that is shown but I'm already using it. What I would like to do therefore is to move all the data from Comment to Description (in one go), then I can start using Comment for new data via the Multiple Item Information dialogue.
    How do I move this data from one tag to another? Is there, for example, a Doug Script to do it that anyone knows of?

    No-one was able to answer my question about how I can input data into the Description tag for several tracks at once
    -> Enter Description Text for Selected v1.1
    "This script will apply user-entered text to the "Description" tag of each of the selected tracks."
    How do I move this data from one tag to another?
    Can't find a script to do this.
    However, you can add to the Comments field and leave what is there.

  • HT4527 how can i transfer my purchases from one windows pc to another without having access to the pc with the music on as it is broken

    how do i transfer my purchases from one windows pc to another without having access to the pc with the music on it , as it is broken ?

    on new pc - open itunes.  sign into your account.  go to settings.  authorise the pc you are now using.  go to account in itunes store.  download purchases.  simples.

  • After installing Mountain Lion, why is there Yahoo access for one user but not another?--both are administrators.

    After installing Mountain Lion, why is there Yahoo access for one user but not another?--both are administrators.

    We've had several instances where we have had to run chkdsk on arrays with over 1m files. Average completion time is approximately 72 hours. The maximum downtime window they have available is the 64 hour weekend window. File sizes and number of files were
    much smaller then than they are now.
    The idea, in theory, was to use VHDs to compartmentalize the data into smaller volumes which could be more easily managed. It would also improve performance when transferring these compartments of data as they would use sequential read/write rather than
    fragmented/random. This idea was never fleshed out in entirety, they don't split data up into little containers, but simply into big ones per project. Hence the 11m files in one container that I am currently trying to diagnose.
    Some other important facts: The VHD in question is mounted in B:/project/ as this server also allows remote workers to log in, but they are restricted to see only data in E:. Disks A-D are hidden via group policy.
    Update: icacls is failing on a large number of files within this dataset. I counted the path characters to ensure it wasn't the 255 character limit I was encountering and verified that the paths being blocked are only about 150 characters long. Once it finishes,
    I'll have to try taking ownership and then re-running it. At this point I still have no idea how long to expect. I'm running out of time as the environment will be in use again at 9AM tomorrow morning.

  • Accessing property of one managed bean to another in request scope

    Right now my applications managed beans are in session scope.
    I want to change them to request scope .But the problem is how to access the bean methods to another if they are in request scope

    Use RequestMap instead of SessionMap.
    Having multiple and independent managed beans in the request scope for 1 request and the need to access the other bean is somewhat odd design however. You may need to rethink about it. For example, add one of the beans as property of the other bean.

  • Can one obj access a private variable of another obj of the same class

    Can one object access a private variable of another object of the same class?
    If so, how?

    Declaring variable private means you can not access this variable outside class
    But other objects of same class can access it. Because each object have separate copy of variable and may have diff. contents for same variable.

  • How does one move or copy emails from one IMAP folder to another without loosing tags?

    I am using Thunderbird 31 with an IMAP server (one that I control) and I'm wanting to move some emails from one IMAP folder to another (within the same account) which works just fine, but I noticed that tags are not retained. Is there a way to copy/move emails without losing tags?
    Thanks:

    I think there are some misunderstood.
    I do not suggest to "Switch" devices.
    I suggest the safest way how you can do it.
    Connect device, where you have needed Address Book, buckup it (only Address Book)
    Then connect second device and just recover Address Book, after from Second device you can delete not needed contact.
    I have 6 devices for separate issue and in all of them same contact, with small changes
    Be sure to click Likes! for those who have helped you.
    If your query is resolved then please click on “Accept as Solution”.

  • Access denied error while running opening remote power-shell session from one azure machine to another

    We are trying to open a remote power-shell session from one azure machine to another azure machine and that is failing with the following error. Any ideas?
    Observations: -
    If the worker role is running under network service or local system, then it fails.
    We emulated the same behavior from a stand-alone exe and that also failed when the exe was run under network service or local system.
    If we run the same stand-alone exe from a user account, then it works.
    Unhandled Exception: System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server sampleapprm.cloudapp.net failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting
    Help topic.
       at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
       at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOp
    en(IAsyncResult asyncResult)
       at System.Management.Automation.Runspaces.Internal.RemoteRunspacePoolInternal
    .Open()
       at System.Management.Automation.RemoteRunspace.Open()
       at ConsoleApplication2.Program.Main(String[] args)

    Hi,
    This error only show access is denied, and it is hard for me to deal with this issue, may be Windows Powershell forum or Windows Azure VM are good forums for you, could you give more details information to us for a better help if this issue
    was related with windows Azure.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • C:forEach tag inside another c:forEach tag

    Hi,
    I've got en error when I tried to use <c:forEach> inside another <c:forEach> to display a vector of String arrays.
    The error message is:
    javax.servlet.ServletException: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.
    The concerned section of the javabean mybean.java is:
    //connect to database to get the resultset
    ResultSet rs = cst.getResultSet();
    if (rs != null) {
    myVector = new Vector();
    while (rs.next()) {
    String myArray[] = new String[10];
    myArray[0]=rs.getString(1);
    myArray[1]=rs.getString(2);
    myArray[9]=rs.getString(10);
    myVector.addElement(myArray);
    rs.close()
    The concerned jsp calling the bean is:
    <jsp:useBean id="theBean" scope="session" class="mybean" />
    <jsp:setProperty name="theBean" property="..." />
    <%
    Vector myVector=theBean.getResultFromDatabaseIntomyVector();
    pageContext.setAttribute("myVector",myVector);
    %>
    <table>
    <c:forEach var = 'vectorItem' items='${myVector}'>
    <tr>
    <c:forEach var = 'arrayItem' items='${vectorItem.value}'>
    <td><c out value='${arrayItem}'/></td>
    </c:forEach>
    </tr>
    </table>
    Can anyone show me what's the right jsp for displaying a vector of String arrays?
    Thanks in advance.
    Geraldine

    I think your problem is with the second forEach loop.
    The first for loop goes through the items in "myVector"
    Each item "vectorItem" should be of type String[]
    Accessing ${vectorItem.value} is what creates the error.
    JSTL converts this as
    vectorItem["value"] , can't turn the string "value" into an integer (to use as an array index) and thus throws an error.
    To fix: use ${vectorItem} rather than ${vectorItem.value}
    (nb you would use {vectorItem.value} if you were iterating over a Map, as the iterator exposes an object of type Map.Entry
    Also in your code, I only see one closing tag for a forEach.
    I think it should be like this (indented for readability)
    <table>
    <c:forEach var = 'vectorItem' items='${myVector}'>
    <tr>
      <c:forEach var = 'arrayItem' items='${vectorItem}'>
        <td><c out value='${arrayItem}'/></td>
      </c:forEach>
    </tr>
    </c:forEach>
    </table>Cheers,
    evnafets

  • How do I transfer Pages from one user account to another

    How do you transfer Pages from one user account to another on the same Mac?

    Welcome to the Apple Support Communities
    If you haven't modified anything, Pages is installed on /Applications. All users have access to this folder, identified as "Applications" on the Finder sidebar, so you don't have to move anything, because Pages will work on all your users.
    If you have installed Pages on ~/Applications (being ~ your user folder), then you have to move Pages to /Applications. After doing this, you will be able to access to Pages on all users

  • Transfer music from one user account to another on the SAME mac?

    My family (wife, son, daughter, and me) share an imac but we all have our own user accounts. Our entire itunes music library is in one user account and is getting to the point of being unmanageable.
    Can I move some of my itunes library (e.g., my son's music) to another user account on the same iMac? Some songs were imported from CD and others were purchased from my Apple ID number.
    It's my understanding that an ipod can only be synced with one itunes library at a time, but I thought Apple also restricted the usage of music bought from itunes to a finite number of computers. If this is true, I think I would be able to transfer a group of songs from one user account to another so long as the user accounts were on the same computer.
    I was told that I could just drag the songs into a shared folder and then log into his account and drop them in iTunes.
    Some specific questions:
    1) Can I move all music files (CD and purchased) to the shared folder for dropping into his account?
    2)The purchased ones were purchased under MY apple ID which I do not want to give him access to. Should I create one for him or just have him use mine and wait for my password. I would like to put an allowance on his new ID number and keep it separate from mine. Would that make a difference in the future if I wanted to use one of his songs on my iPod or in an iMovie project?
    I just reinstalled my Lepoard OS X and put all my data back. I did not deauthorize anything before I did this. Did I need to? Or is even a clean install on the SAME machine ok and seen as the same authorization?
    Thanks in advance!!

    You can give him copies of song files, either by using a shared folder, or by putting the copies on a USB flash drive from which he can copy them to his own iTunes library.
    Any DRM-protected tracks that you have purchased from Apple can only be played if the user has authorization to the account(s) from which the tracks were purchased. Authorization requires physical access to the computer and knowledge of the password, and you can figure it from there!
    Message was edited by: ed2345

  • How do I export photo's from one user acct. to another user acct

    Trying to export photo's from one user acct. to another user acct. on same computer into second users Iphoto app.

    File -> Export to the destop. Drag to Users/Shared Folder and then import from other account.
    Or use iPhoto Sharing:
    For iPhoto 09 (version 8.0.2) and later:
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • How do I transfer files and documents from one user account to another?

    How do I transfer documents and files from one user account to another?

    You haven't understood me. Follow these steps:
    1. Log in the user where are the files you want to transfer, and open a Finder window.
    2. In Finder, select Go menu (on the menu bar) > Go to Folder, and type /Users/Shared. Now you're on Shared folder, so leave that window.
    3. Open a new Finder window without closing the old one, go to the folder with the files you want to transfer, and copy them to Shared folder.
    4. After copying the files to Shared folder, go to  > Log Out, and log in the other user.
    5. Repeat the step 2, and you will get access to the transferred files. Now, you can open them directly from this folder, or you can copy them to a folder on your user folder

  • Transfer music from one Apple account to another

    Is it possible to transfer purchased songs from one Apple account to another? I have some music on my account that I have downloaded for someone who did not have an account. Now, they have an account, and I want to transfer their music to their account. I don't desire access to these songs anymore.
    G4   Mac OS X (10.4.4)  

    Thanks. He is a bit too young for a credit card, but the gift card would have been a good idea. Unfortunately, what's done is done. Thanks for your reply.

Maybe you are looking for

  • Can't Get CS5 to work on new computer?

    Old computer crashed and shop installed Photoshop CS 5 on new computer but only Bridge will work.  When I click on CS 5 icon I get  the message 'Some Application Components are missing from the Applications directory.  Please reinstall the applicatio

  • Photoshop CS4 Install issues - Serial # not accepted

    I have just spent THE most frustrating 3 hours trying to deal with Adobe Support. -Upgarded my Hard Drive -Tried to reinstall PS CS4 -recieved error message on first screen saying that I had the wrong number -Called Support, spoke to a lady I could b

  • Shared Photo Stream Taking Up Storage

    In our family we do a shared photo stream every month. It's a great idea and I love being able to see the pictures, video, comments, etc. from all of my family members. It doesn't take up any room on iCloud which is very nice, however it does take up

  • Weird auto punch bug in Logic Pro X

    I set up for an auto punch. Hit record and the auto punch works fine, however it creates what looks like a midi punch on an adjacent track, that wasn't even selected. I can delete this weird midi punch and reconnect the audio file and the adjacent tr

  • Consolidating in another currency

    Our main entity hierarchy has base entities in a number of currencies, but all parents are USD. We have a need to translate and consolidate the same base data using the prior year's currency rates. The translation of base entities at the new rate is