Distinguish between different checkboxes/links in onInputProcessing

Hi everybody,
I've got a form with two links and two checkboxes. I would like to trigger a serverside event handling when any of these elements is pressed. So I use Javascript: the page attribute 'navigate' is filled with different values on client side (document.view.navigate.value = action) and the form then sent by 'document.forms[0].submit();'.
<form name="view">
<a href="javascript:submit('select1');">
<a href="javascript:submit('select2');">
<INPUT TYPE="checkbox" NAME="cb1" VALUE="X" onclick="javascript:submit('upload1');">
<INPUT TYPE="checkbox" NAME="cb2" VALUE="X" onclick="javascript:submit('upload2');">
<input type="hidden" value="" NAME="navigate">
<input type="hidden" value="" NAME="OnInputProcessing(input>">
<endform>
<script>
function submit(action) {
   document.view.navigate.value = action;
   document.forms[0].submit();}
</script>
This works fine for the two links: 'navigate' is filled with either 'select1' or 'select2'. However 'navigate' is initial when I select one of the checkboxes.
Unfortunately I can't use 'htmlb:checkbox' in this project.
Can You help me there?
Best regards,
Markus

I tried using this syntax and i was able to capture the event.
<script>
function submit_action(action)
  alert(action)
</script>
<input type="checkbox" name="Bike" onclick="submit_action('upload')" />
This is passing the upload to my javascript function.
hope this helps.
Cheers
cheers
Message was edited by: vin

Similar Messages

  • Distinguishing between different calendars?

    Is there a way to distinguish between different calendars from iCal on the Touch?

    Nope.
    Hopefully they will update that in the future. (www.apple.com/feedback)

  • Can I distinguish between different googlemail accounts in the mailto option?

    I have 2 different gmail accounts. When I use the "Email link" command it does not distinguish between the 2 accounts. Can I set the option to use just one gmail account?

    See Settings > Managing multiple accounts:
    *http://support.google.com/mail/?hl=en - Gmail Help
    Managing multiple accounts - Gmail Help:
    * http://support.google.com/mail/bin/topic.py?hl=en&topic=1669030

  • JTree Node Color, to distinguish between different activities

    Hi,
    Situation:          Dynamic JTree (Tree is constructed from as a result of Database). User has the option to either Enable / Disable node and can repeat the activities but restricted only one activity per node, the node is to be highlighted; to restrict the user from further activities.
    Problem:          Am a newbie to swing, after searching the forum for the same, i found few good solutions which are specific to color change of specific selected node, in a temporary context.
         But we need the node color change within a same level; to distinguish either the node is either enabled / disabled.
    Your help is appreciated,

    durino13 wrote:
    1. Is the approach above a good approach, how to load children 'lazilly'?Sounds pretty reasonable to me.
    2. I also use custom renderer to display different icons for every "tree" level. When I initially expand the 4th level, everything works fine !!! Then I collapse the 4th level and expand it again and here my problem starts: my 4th level icon is set to 'root level icon' instead of '4th level' icon. This does not happen, if computerNode.removeAllChildren(); method is removed from listening above
    Any idea, what am i doing wrong?Ummmm... Load the model the first time (only) the node is expanded... Putz!
    And I suggest you listen deeply to Mr Jacobs... He really does know what he's talking about ;-)
    ... and not this time, but in future: Swing questions are best asked in [THE Swing Forum|http://forums.sun.com/forum.jspa?forumID=57].
    Cheers. Keith.

  • Integrating 3rd party SSO with SAPGUI and distinguish between different SID

    Hello,
    we are trying to integrate a SSO application on Win XP with SAPGUI 6.20 (SAP 4.70).
    The SSO app fills, in case of SAPGUI, the fields 'client', 'username', 'password' and 'language'.
    Which credentials to choose is normaly based on information the SSO app gets out of the applications context it should log in to.
    As an example with IE it's the window title and the URL.
    But with the SAPGUI we only get "SAP" as an identifier, despite which SID/server(?) is selected. And therefore we are not able to fill in the corresponding credentials.
    Where can the SID (and perhaps 'client') be retrieved by an external program when the logon screen is displayed by SAPGUI?
    Please apologize if this is the wrong forum or I'm using wrong terms, but normaly I'm living outside the SAP world.
    TIA!
    Regards,
    Frank

    as an addendum to my post, I've seen that this can be done.
    http://www.hardcopy.de/hardcopy/english/bsp_sap_neu_kz.php3

  • I have imported three gmail accounts into mac's mail client.  can i do anything to distinguish between them?  e.g., can i have each one appear in the mail list in a different color?  I don't want to do it by sender, but by email account.

    i have imported three gmail accounts into mac's mail client.  can i do anything to distinguish between them?  e.g., can i have each one appear in the mail list in a different color?  I don't want to do it by sender, but by email account.

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • How can I link text boxes between different Master Pages in InDesign?

    I want to link text boxes back and forth between different Master Pages in InDesign. How can I do this?

    I'm interested to know what it is you're trying to achieve - can you explain what you want your text to do?
    Regards,
    Malcolm

  • How can i distinguish between set or tuples from incoming filters in a calculation

    How can i distinguish between set or tuples from incoming filters in a calculation. i am using descendants function with the leaves option to calculate some project revenue cause there is different calcuation method on sub projects the sum on the main project
    should reflect the sum of the sub project with all different methods.
    this works fine until i try to select 2 sub projects at the same time. i am getting the standard currentset dosnt work cause its a set.
    is there i way i can check if its a multiple select or not and handle it a different way

    Hi,
    Check the following link about Multi Select Calculations written by Mosha.
    http://sqlblog.com/blogs/mosha/archive/2007/01/13/multiselect-friendly-mdx-for-calculations-looking-at-current-coordinate.aspx
    Best regards...
    Chandima Lakmal Fonseka

  • HT1203 iTunes: How to share music between different accounts on a single computer - I tried to use the instructions to configure 2 different windows users sharing the same iTunes library.  I could not get this to work per the instructions.

    I tried to configure 2 windows users accounts using a single library per the instructions in HT1203.  My iTunes library is on an external drive.  I cannot get this to work.  Any suggestions?

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • Sharing iphoto library on the same computer between different users

    Can anyone tell me how (without having to write my own code) I can share photos easily (so I can teach my parents, who know nothing about mac, how to do it) between different users on the SAME COMPUTER?
    I am so frustrated! You can share with anyone else in the world, but when it is on the same computer I can't figure out how to share!

    Hi Mereditty,
    Here are all the links I have for sharing a couple of different ways.
    SHARING IPHOTO LIBRARIES
    Sharing libraries between users on the same local network
    You can also share a library on the same machine between users the same way.
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    -Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing links from Apple....
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos
    SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
    You can try one of these three methods:
    1- Use iPhoto Library Manager-the paid version
    The documentation page will give instructions on how it is done.
    2- Sharing one iPhoto library between several users on one machine
    3- Share an iPhoto Library in tiger Using ACL's
    4- I have also read about ShareAlike
    There is no other info on the site about how it works.
    I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.
    Lori

  • How do I share photos and music between different user accounts on the same macbook

    How do I share photos and music between different user accounts on the same Macbook? i.e. I want all to be able to access family photos when logged into their respective accounts. Same goes for the iTunes library. Hope this is possible...
    Thanks!

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • Distinguishing between two instances of the same portlet

    Hi Experts,
    Is there a way to distinguish between two instance of the same portlet in different browser windows?
    I'm looking for something like URL parameter passing, but just for portlets.
    The problem is, I want a way to pass a parameter between views in a portlet, but in such a way that if another browser window is opened and navigated to that portlet page, the parameter won't be the same. Perhaps I can explain better with this example:
    Page A has a portlet on it which has a textbox and 2 buttons - the first button stores the value in the textbox in the PortletRequest (or PortletURL) and if you click the second button the portlet navigates to a different view which displays the value. If I navigate with a second browser window to Page A, however, and only click the navigate button, that value which was stored by the first instance of the portlet will still be shown. I want them to be independent, I don't want changes in the one's PortletRequest to reflect in the other one's PortletRequest.
    Any ideas?
    Thanks,
    JP

    Why not use two instances of the same portlet, i.e. create two channels of the same portlet.
    The behave the same, have the same application logic, so all you need is to transfer informations between the two portlets.If you want this within user space use the portlet session, otherwise access the http session context /application context and store the data there.
    The behavior would be controlled by the portlet preferences, so channel a (instance 1) would be configured to run as controller and channel b (instance 2) would be configured as receiver.

  • Can JMSPriority be used to distinguish between real-time, near real-time workloads?

    IHAC that needs to throttle work passed to a backend system, i.e. limit
              the # of concurrent requests, as well as prioritize between different
              kinds of workloads including real-time, deferred real-time
              (asynchronous) and batch.
              I'm proposing to use a pool of MDBs reading of a single JMS queue. The
              max-free-beans-in-pool would be used to limit the concurrent access to
              the backend system.
              Can JMSPriority be used to distinguish between the different kinds of
              workloads? (real-time, near real-time and batch)
              How is the JMSPriority used when consuming messages from a queue in WLS
              JMS? Are messages dequeued in strict priority order or is there an
              algorithm to ensure lower priority messages are periodically consumed,
              i.e. to ensure they are not starved-out? Or do you have to create a
              message selector to dequeue based on priority?
              Is the an appropriate use of JMSPriority or should I set-up dedicated
              JMS queues for each of the different workload types?
              Cheers
              Simon
              

              Tom,
              How do you create custome connection factories in JMS? And also how can u
              change the MessageMaximum to 0? I thought the minimum is 1 and that u can only
              change in the config.xml file??
              Any code snippets on how to write custom connection factories would be helpful.
              Thank You,
              Sankas
              Tom Barnes <[email protected]> wrote:
              >Hi Simon,
              >
              >Answers in-line.
              >
              >Simon Pearce wrote:
              >
              >> IHAC that needs to throttle work passed to a backend system, i.e. limit
              >> the # of concurrent requests, as well as prioritize between different
              >> kinds of workloads including real-time, deferred real-time
              >> (asynchronous) and batch.
              >>
              >> I'm proposing to use a pool of MDBs reading of a single JMS queue.
              >The
              >> max-free-beans-in-pool would be used to limit the concurrent access
              >to
              >> the backend system.
              >>
              >> Can JMSPriority be used to distinguish between the different kinds
              >of
              >> workloads? (real-time, near real-time and batch)
              >>
              >> How is the JMSPriority used when consuming messages from a queue in
              >WLS
              >> JMS? Are messages dequeued in strict priority order or is there an
              >> algorithm to ensure lower priority messages are periodically consumed,
              >> i.e. to ensure they are not starved-out?
              >
              >To get priority sorting you must configure the destination to sort by
              >priority.
              >It sorts FIFO by default.
              >
              >In addition, you may want to tune-down the pipe-line size between
              >the JMS server and the MDB (create a custom connection factory, and
              >set MessagesMaximum to 0, default is 10), as the pipe-line is unsorted
              >and consequently messages will not "jump ahead" of each-other in the
              >pipe-line.
              >
              >> Or do you have to create a
              >> message selector to dequeue based on priority?
              >
              >No.
              >
              >>
              >>
              >> Is the an appropriate use of JMSPriority or should I set-up dedicated
              >> JMS queues for each of the different workload types?
              >
              >The latter, as long the app can tolerate concurrent execution of all
              >workload
              >types due to having an MDB per queue. The latter will perform better
              >than selectors,
              >and you won't have to worry about the unsorted pipe-line.
              >
              >>
              >>
              >>
              >> Cheers
              >>
              >> Simon
              >
              >Tom, BEA
              >
              

  • Distinguish between Document Libraries and Subsite

    Hello Team,
    When I create a Subsite or create a document Library, How can I access the Document library through the network Share
    If I add documents to a Document Library:
    Does it create a static link or a dynamic link
    How can I access the Document library through the network Share
    If I create a folder structure and add document to the folders to subsite
    Does it create a static link or a dynamic link
    How can I access the folders in a subsite through the network Share
    How can I distinguish between a sharepoint site or document library by just looking through a URL

    Following links explain how a Document library can be accessed using Network Share/Windows explorer.
    https://hubone.zendesk.com/hc/en-us/articles/200167580-SharePoint-Using-Explorer-View-or-Mapped-Network-Drives
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b3425c4b-6558-4b51-882d-f9603c36f214/accessing-sharepoint-documents-from-windows-explorer-on-the-server?forum=sharepointgenerallegacy
    The Url of a Document library will conatin "Forms" in it. Example:
    http://yoursite/MyDocs/Forms/AllItems.aspx
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Distinguishing between CSV and Excel file formats

    I am trying to distinguish between CSV and Excel files.   Most of the files I need to process are CSV, but some have been opened and re-saved in Excel format.  I know about the Excel toolbox available, but haven't used it yet. 
    I need to be able to open a spreadsheet file regardless of if it is in CSV or Excel format.  Any help would be greatly appreciated.
    Here are two example files, one CSV and one Excel.  Both have .XLS file extensions. 
    Attachments:
    20-4-XLS.xls ‏21 KB
    20-5-CSV.xls ‏8 KB

    Hi Paul,
    I think the matter is not the extention (xls or csv or whatever) but the format of the data written in your file.
    To see what I mean, open the xls file you posted with notepad... What does it look like ?
    You have tobe sure of the format of the file you want to read so that you can develop an appropriate VI... if you want to be able to read different type of data format, do a test before reading the file and then use an appropriate routine for each format.
    Hope this helps you...
    BTW, to read the one named CSV, a simple "read from spreadsheet file" VI will do the job
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Maybe you are looking for