Pass form value when the click on

Hi all

How can I pass the value of a Checkbox control when it is selected for a hidden value in another form on the page?

And if there is more then a checkbox clicked on it must pass all checked values.

Any ideas?

> any help in the JavaScript file?

I wouldn't do it this way. You then make the features of the
page depend on activation of javascript of the visitor.

Server script is the best (and easiest) to do this.

--
Murray - ICQ 71997575
Adobe Community Expert
(If you * MUST * write me, don't don't LAUGH when you do!)
==================
http://www.projectseven.com/go - DW FAQs, tutorials & resources
http://www.dwfaq.com - DW FAQs, tutorials & resources
==================

"theBeachBum" wrote in message
News:fgfs8i$I1c$1@forums. Macromedia.com...
> Hi Murray.
>
> I thought this, but tried to avoid all this code... thought
> about the event onClick javascript might be easier... all help to the
> javascript?

Tags: Dreamweaver

Similar Questions

  • The text element values value when the user clicks a report line.

    The text element values value when the user clicks a report line.

    I have a report based on the EMP table and two elements P911_EMPNO, P911_DEPTNO. When I click on one of the lines the EMPNO and DEPTNO is copied to the text elements.
    It works fine if I leave the EMPNO and DEPTNO as SHOW report, but if I then these clear values are not retrieved the report form (my javascript is very limited).

    I need a method to retrieve the data hidden in the report and display in the text without the reposting of the page elements.

    Also, would be nice if the line was highlighted until another line is clicked but especially is my priority.

    Elements
    P911_EMPNO, P911_DEPTNO (field of disabled text, saves the State)

    Report
    Select * from emp using the model of report below.

    Custom model.
    standard_report_cust_P330-a copy of the standard report with a change model.
    BEFORE EACH LINE
    < tr onclick = "selectRow (this);" #HIGHLIGHT_ROW # >


    * Javascript in the Page Header.*
    < script language = "JavaScript1.1" type = "text/javascript" >
    function selectRow (p_tr)
    {
    var l_deptno = p_tr.childNodes [8] .innerHTML;
    var l_empno = p_tr.childNodes [1] .innerHTML;
    html_GetElement ('P911_DEPTNO'). Value = l_deptno;
    html_GetElement ('P911_EMPNO'). Value = l_empno;
    }
    < /script >

    If anyone has any ideas. Thanks, Pete

    Hello

    When you use this type of report model, you actually control on where the column values are used - and they can be used several times.

    For example, a setting of 'Model line 1' for one such model could be:

    <tr>
    <td class="c1">#1#</td>
    <td class="c2">#2#</td>
    <td class="c2">#3#</td>
    <td class="c2">#4#</td>
    <td class="c3">#5#</td>
    </tr>
    

    #1 # fact refers to the data in the first column, #2 # for the second and so on. So you can do:

    <tr onclick="javascript:dosomething('#1#','#2#');">
    <td class="c1">#1#</td>
    <td class="c2">#2#</td>
    <td class="c2">#3#</td>
    <td class="c3">#5#</td>
    </tr>
    

    For example, by clicking on the line would trigger the dosomething() function and pass in that the values of the first and second columns. Also note that the 4 # does not appear now - this column is 'hidden' (but note that you must check the box to show the column)

    Andy

  • Validation of the user interface of by-pass when the click on the menu

    Hello

    Scenario:

    Go to any entity change the navigation bar page, having required validations on the fields of the user interface.

    Now, try to browse page by clicking on an item of menu registered in the recent items menu in the Shell of the user interface.

    The required validation is triggered.

    Earlier we faced a similar question of the necessary validation is triggered when the click on the button 'Cancel' in the edit page. At this point, we immediately applied = true to the Cancel button and the problem is solved.

    Is there something on similar lines for the validation of UI bypassing during the click on the recent items?

    Thank you
    Ravi

    Hello

    Earlier we faced a similar question of the necessary validation is triggered when the click on the button 'Cancel' in the edit page. At this point, we immediately applied = true for > Cancel button and the problem is solved.

    It is the same for the af:menuItem IE (immediately apply = "true" to get around the validation of the user interface [client side], its support by almost all components of the adf).

    Kind regards
    Sicard.

  • validation of the values when the user entering advanced table

    Hi all

    I developed a page that has progressed to table and calculating the total of table in advance. I get the total value when I click on the Recalculate button.

    but I want to restrict the user to enter negative values in the row of this column how to make this senario

    Open AMImpl.java

    This finding validate method if it is not there double click on select java am file and method validate tick click ok it creates the validate method in AMImpl.java and write your validation

  • How to NOT send some form data when the form is submitted

    Hello

    I created a PDF form with radio buttons in the Group and the boxes. When I the form of data, such as values using the submit by e-mail button to send form data as XML or merge data into a spreadsheet files, I'll see the data values for radio buttons and checkboxes.

    What I want here is to don't get the data values for some controls such as the boxes option, but no other controls like check boxes, in the XML or Excel worksheet after submission of the form. I know how to hide the controls in the form, but I have to the visible and active boxes on the form.

    Is there a way to hide or do not send form data when the form data is submitted?

    Thank you

    Sam

    Hi Kyle,.

    That's exactly what I want! Once I have not selected any data binding, the field is in shape and active, but when submitted as XML or it merge with a spreadsheet, the field is gone.

    Forgive me if I didn't my self clear in my question. Answer you is straight to the point.

    Thank you very much!

    Sam

  • Storing the value of the click in a variable

    Hello!

    Not a very good programmer, I have this project I'm working on which I create in the edge animate. Here it goes.

    I have a few labels that act as small clips, for example, 'Clip 'Clip 'Clip 'Clip 04' 03' 02' 01'.

    Basically, I have something like a menu bar. If I click on ' Clip 01', the Clip corresponding to he plays, as "" Clip 04' 02', ' Clip 03', buttons play their respective clips. »»

    Here's what I want to do instead, if I click on ' Clip 01', the value of the click event for a click on what could be 1 and 0 for clicked not be stored in a variable. "

    Before "01 Clip' actually starts to play, he must check the value if it is 1 or 0.» If it is 1, while it should play something else he should do nothing.

    The above is just an example of what I'm trying to create. In other words, if I try to explain what I am actually to create or the case, there is really a lot of time explaining from the short example above.

    Thanks in advance

    If you have several buttons here are 2 ways to do it:

    If you can use jquery use this group all your buttons in a div and the Group of call buttons.

    var buttons = sym.$("buttons").children ();

    $.each (buttons, function (i) {})

    $(this) .one ("click", function() {}

    code here

    SYM.$("images"). CSS({"Opacity":0.00});)

    SYM. $("images").animate({"opacity":1.00},700) .attr ('src', ' images / "images [i] +".png"');

    });

    })

    If this is not the case, use this:

    function useButtons (element) {}

    {sym. $(element) .bind ("Click", Function ()}

    This example shows how to change a picture

    SYM.$('image').Attr('src','images/'+element+'.PNG'). CSS({"Opacity":1.00});)

    });

    }

    Add here the names of button

    ["," "," "] .forEach (useButtons);

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • Passing DB values to the text based on the Select Value box

    Hello

    I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".

    I tried using processes calling for demand, but could not get the desired result.

    Please suggest!

    Hello

    Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.

    Kind regards

  • How to pass a value to the form defined in the context of security file name?

    Hi all

    Yet to learn JavaScript... I have a JavaScript script, save a copy of my pdf to a location on my machine. Got the privileges of working well as well.

    How I spend in the field values for the file name? Right, the created pdf copy is now called .pdf [object scope]. Instead, I want to use dynamic values of in the form itself.

    Then this.documentFileName gets me the name of the file (Code record trust)...

    var mySaveDoc = app.trustedFunction (function (doc, subName) {}

    app.beginPriv ();
    var myPath = "/ c/SubInspectionForms /" + this.documentFileName + ".pdf";

    saveAs is the only privileged code that should be placed
    with beginPriv/endPriv
    doc.saveAs ({cPath: myPath,})
    bCopy: true,
    ({bPromptToOverwrite: true});
    app.endPriv ();

    });

    this.getField("INSPECTION_Location") doesn't the value of a field:

    var mySaveDoc = app.trustedFunction (function (doc, subName) {}

    app.beginPriv ();
    var myPath = "/ c/SubInspectionForms /" + this.getField("INSPECTION_Location") + ".pdf";

    saveAs is the only privileged code that should be placed
    with beginPriv/endPriv
    doc.saveAs ({cPath: myPath,})
    bCopy: true,
    ({bPromptToOverwrite: true});
    app.endPriv ();

    });

    The script on my SaveACopy button is:


    subName var = this.getField ("INSPECTION_Location");

    mySaveDoc (this, subName);

    I need the value of the field in the function?

    It is easy to think 'this. GetField"is a universal thing you can still use, but it is not. Read carefully the description of the object "Thi". It is set in some contexts, and I don't think this is allowed when using it. You must pass it as a parameter in a context where it is defined.

  • How can I get the classic report value when I click on the record?

    Hi all

    I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!

    Hi jane.kuang,

    Jane.Kuang wrote:

    Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!

    Use instead the dynamic action to that effect.

    Here are the steps:

    • Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
    • Create a dynamic action with the following attributes:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector:

    #myempregion table.uReportStandard tbody tr
    

    Action: Run the JavaScript Code

    Code:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text();
    alert(empno);
    $('#P21_X').val(empno);
    

    Items concerned: keep it unselected

    • Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.

    This will fix the following in the code of the Para:

    • The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
    • Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
    • Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.

    Kind regards

    Kiran

  • must pass the value on the click event

    I hope I can explain this well. I built a set of miniature furniture which is basically a VBox with an image and text in there field. I have it based on the sample flexstore application. Inside the script of the component, I declare a public variable called model. It contains the name of the corresponding viewstack view. When you click on the thumbnail component I need to update my viewstack with the variable name. I get the variable by calling the event.target.comp between the mouseclick event. The code works fine until I click on the text box or image. Otherwise, he said the model is not defined and there is no default value. How can I make sure that no matter where I click inside the miniature component, it returns this value for me?

    Site with source is available here

    Will put it answered and repost in the appropriate forum. Sorry

    I hope I can explain this well. I built a set of miniature furniture which is basically a VBox with an image and text in there field. I have it based on the sample flexstore application. Inside the script of the component, I declare a public variable called model. It contains the name of the corresponding viewstack view. When you click on the thumbnail component I need to update my viewstack with the variable name. I get the variable by calling the event.target.comp between the mouseclick event. The code works fine until I click on the text box or image. Otherwise, he said the model is not defined and there is no default value. How can I make sure that no matter where I click inside the miniature component, it returns this value for me?

    Site with source is available here

    Will put it answered and repost in the appropriate forum. Sorry

  • Move links to javascript value when the page is loaded

    Hello

    I use JDeveloper 11.1.2.4.0.

    When loading my jsf page, I want to pass the value of the lat, long columns of links the attribute so that the map google map is rendered correct loading of the page.

    I can do when a button is clicked.  But I want to do it when the page is loaded.

    Any ideas?

    Thanks in advance.

    Here is the code snippet, which includes the javascript function: instead of coding hard - 34.397 and 150.644, I would like to happen next as parameters or

    access it some how from the pagedef attribute binding.

    < f: facet name = "metaContainer" >
    " < af:resource type = 'javascript' source = ' https://maps.googleapis.com/maps/API/js?v=3.exp & Sensor = false "/>
    < af:resource type = "javascript" >
    var map;

    initialize() function
    {
    var mapOptions =
    {
    Zoom: 8, Center: new google.maps.LatLng (-34.397, 150.644)
    };
    card = new google.maps.Map (document.getElementById('map-canvas'), mapOptions);
    }

    google.maps.event.addDomListener (window, "load", initialize);
    < / af:resource >
    < / f: facet >

    Hello

    set a listener of phase for the view (using the beforeMethod on the f: view of the page markup). In the method, then use the ExtendedRenderKit Service to call JavaScript from Java. The method must listen for the phase PREPARE_RENDER, who is the liaison for the page to exist. You can access the link from BindingContext.getCurrent () .getCurrentBindings () layer. From there, you call (AttributeBinding) bindings.get ("the binding of the attribute name") to get the attribute mandatory and then - in a next step - the inputValue with data to transmit

    Call JavaScript from Java:

    String script = «...» Add JS calls to set values in JS variables accessed by Google Maps"

    ExtendedRenderKitService erks = Service.getRenderKitService (context, ExtendedRenderKitService.class);

    erks.addScript (context, script);

    Frank

  • Passing multiple values to the report

    Hello
    I have a form of parameter. One of the field will have at least one value. When there are multiple values, the values will be separated by a comma and pass on to the State. Please tell me how to separate them and put them in the citation in the report query.
    EX: values are: PO, DR
    There will be in the where condition as: where code in ('OP', 'DR');
    Thank you in advance.

    PS. I use 10g

    Published by: 945599 on 10 July 2012 14:04

    Hello

    I sent the unit test by mail.
    Please note that there are some hardcoded values when you use run_report_object (name of report server and host name).

    Kind regards
    Alex

    Published by: AlexDiniasi on 19.07.2012 17:14

  • How to pass item values to the fields in Page #2 Page 1

    Hello

    On the first page, I have two points and a single button.
    Point n ° 1 P1_PROJECT_NAME display text (escape special characters, does not save the State)
    Article #2 P1_PROJECT_ID hidden and protected
    Button #1 create redirect page 2

    When the user clicks on the Create button, 2nd page opens with the form for creating detailed project which includes the two following fields.
    #1 P2_PROJECT_ID a text field
    #1 P2_PROJECT_NAME a text field

    I want to change the P1_PROJECT_ID value to the field of P2_PROJECT_ID and P1_PROJECT_NAME to the P2_PROJECT_NAME field.
    How can I do this?

    Thank you
    Guy

    Guy,

    If you change your button and go to the "URL redirection Option" section you will find two fields: 'Put on these elements' and 'with these values.
    Simply enter your values in these two fields separated by commas, in the same order.

    Kind regards

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • Passing of value of the load capacity of the human task to query ADF VO BPM

    Hello world

    faced with the variable binding in the VO.

    This is the scenario:

    I have a page of the ADF in my BPM process that uses the variable in the flow of payload in variable display object related task.

    My VO has this query:

    Select FULL_NAME, user_name

    of ROLE_TEAM

    where in('IO-UB','AGG-CST-UB') role

    and cdc =: sector

    I need to pass the variable to link called 'sector' to it.

    In my office, I have the variable called 'sector' but I don't know how to switch to the VO.

    With the help of Jdev 11.1.1.7

    Can you help me?

    Thank you.

    Fairlie

    Well it should work, but it's a little more complicated that it should probably be.  ( Dan Atwood accessories to be creative!)

    You must call the method "ExecuteWithParams" on your view object before loading the page.  This can be done during the loading of the page, or in the taskflow (a bit easier to explain).

    First of all, as you described, create your SQL VO query with your variable binding "and cdc =: sector ' make sure 'sector' is a variable binding is set to be updated.

    Then, create the link to your payload BPM 'sector' value (we'll call it SectorPayload) on your page (just drag as a text of output so that ADF automatically creates the link).

    Now go to the taskflow which has your page that you are trying to view and expand the data control / view the object you want.  The "ExecuteWithParams" method (in the folder of your VO in the DataControl operations) drag the taskflow.  You will be prompted with an Assistant "Change the binding Action" which will have your listed parameter.  Its 'value' uses the phrase EL editor develop "links ADF-> data-> of the page that you have created SectorPayload on (com_company_pagePageDef)-> variable-> inputValue. SectorPayload.  The resulting expression should look like:

    "#{data.com_avioconsulting_demos_showMyPayloadPageDef.SectorPayload.inputValue}".

    Right-click activity and go to the activity of the brand-> by default (it runs everything first and highlights its green).  Then draw a line from this activity to your view.

    The view object should now be filtered according to your variable binding.

    HTH!

    -Kevin King

Maybe you are looking for