Issue with checkbox on tabular form

Hi (to all my friends in deperate times),
I have a tabular form on a page, which i use for addition of record only. So it always displays me a blank row, which is ready to be inserted after user has filled in data and clicked submit button.
Now I have a checkbox field on this tabular form. Since all the columns i show as null, I also show this checkbox as unchecked when page shows up. Here is the query for the source region of this form:
SELECT null "Client",
null "Currency",
HTMLDB_ITEM.CHECKBOX(40,'YES',null) critical_box,
FROM dual
I have used 'YES' as return value of this checkbox( when user has checked it, else i assume it will be not equal to 'YES').
I have my own update process, which gets fired on click of 'Submit'.
this is my insert clause in this update process:
INSERT INTO table1
(client, currency,critical_level)
values
(APEX_APPLICATION.g_f01(i), APEX_APPLICATION.g_f02(i), decode(APEX_APPLICATION.g_f40(i),'YES','YES','NO')
Now problem is that when i click checkbox and save it, it adds record correctly. But when i dont click checkbox during insertion, at that i get error message that no data found. It should insert 'NO' for 3rd column when checkbox is not clicked.
Please help here. Not sure why its giving no data found error when checkbox on tabular form is unchecked.
Thanks and Regards,
Rave.

Hi,
In the linked thread, the solution was to provide a second, hidden, item that always returned a known value. This item, also created using the APEX_ITEM package, uses the same index number as your checkboxes - so, if your checkboxes use index 40 (to get "f40"), then the hidden item uses 40 as well. This way, we always get at least one value for each row and the last possible value in a row will be known.
So, assume that the hidden item values are "NO", you have 10 rows on the page and the user ticks items 1, 2 and 5. The f40 items submitted would be:
YES:NO:YES:NO:NO:NO:YES:NO:NO:NO:NO:NO:NO
so, there will ALWAYS be 10 "NO" items and the YES item immediately before it will be the checkbox on the same row. So, if we loop through all f40 items, the YES values mean the checkbox and the NO values mean end-of-row - and, if we keep track of the NO values, we know which row we are on.
So, the code to find the data in f01 and f02 relating to the the YES values (the checked checkboxes) would be something like:
DECLARE
vROW NUMBER;
vF01VALUE VARCHAR2(100);
vF02VALUE VARCHAR2(100);
BEGIN
vROW := 1; // current row number
FOR x IN 1..APEX_APPLICATION.G_F40.COUNT
LOOP
  IF APEX_APPLICATION.G_F40(x) = 'NO' THEN
   vROW := vROW + 1; // end of the row, so move to next row
  ELSE
   // found a checkbox, so get related data
   vF01VALUE := APEX_APPLICATION.G_F01(vROW); // f01 item on the same row as the checked item
   vF02VALUE := APEX_APPLICATION.G_F02(vROW); // f02 item on the same row as the checked item
  END IF;
END LOOP;
END;Andy

Similar Messages

  • Checkbox in Tabular Form

    Hi,
    I am fairly new to APEX and need some help please.
    I am nrunning Apex 4.1 on 11g database.
    I have a tabular formrunning off the rowid which needs to show a checkbox for several columns which contain Y or N.
    When I set the field type to simple checkbox, none of the checkboxes are ticked for any columns with a Y.
    Can someone please tell me what I need to do to get a simple checkbox on a tab form to work without too much effort?
    I can use a select list OK, but really just want a tickbox to reflect the Y or N in the column (ticked, unticked).
    I have tried using the apex_item.checkbox() in the query, but that doesn't seem to work.
    Example of select statement:-
    select
    "ROWID",
    "DEPARTMENT_REFERENCE_U",
    "NAME",
    "AUTHORITY_FLAG", -- tickbox
    "AUTHORITY_NAME_CODE",
    "DEFAULT_VALUE", -- tickbox
    "ROADS", -- tickbox
    "ANSWER_SET", -- tickbox
    from ....
    I tried apex_item.checkbox(1, rowid, decode(roads,'Y', 'checked','unchecked')) "ROADCHECK", but just get missing right parantheses
    If someone can give me some pointers I would be really grateful.
    Thanks,
    Carl.

    Hi,
    Thanks for the info.
    The whole SQL statement for the tabular form now reads:-
    select apex_item.checkbox(1, rowid, decode(roads,'Y', 'checked',null)) "ROADCHECK",
    "ROWID",
    "DEPARTMENT_REFERENCE_U",
    "NAME",
    "AUTHORITY_FLAG",
    "AUTHORITY_NAME_CODE",
    "DEFAULT_VALUE",
    "ROADS",
    "ANSWER_SET"
    from ....
    ... And returns error of missing right paranthesis. As soon as I take out the apex_item, the query runs.
    I don't really want to use apex_item if I don't have to (or any other complex coding to make things work) and have been instructed to let Apex do all the work through its automatic functionality (probably for anyone else picking it up in the future. I am in the process of evaluating Apex so we can change over from Oracle Forms). All I want is for the checkboxes to be ticked if the column contains Y. Historically, the columns will contain Y or N, but it seems in Apex/HTML the unticked default is null, which we can live with. I have tried the 'checkboxes the easy way' as in URL earlier in this thread and it seems OK, but don't really want to have to go down that road, just for a tickbox, especially on this form where I need 4 of them.
    In my tabular column attributes for the column I want as a tick box I have:-
    Display As Simple Checkbox, render form field without template, LOV = STATIC:;Y (the Named LOV drop down box is greyed out and disbaled).
    When I run the form, all tickboxes for this column are displayed as unticked, where as in the database they are all Y.
    Is there something obvious that I have done wrong/need to do?
    Regards,
    Carl

  • Checkbox in tabular form - help needed

    I'm trying to build a tabular form, with a checkbox for a field that can have value 'Y' or 'N'. Adding the checkbox is no problem, with the htmldb_item.checkbox API.
    However, processing it is.
    On this forum I found a way to process the checkboxes, by looping through all the records (with the help of htmldb_item.hidden in which the id is stored) and reading the value from the checkboxes and updating the column if the checkbox is checked. (see Re: Report with updateable checkbox)
    however, as soon as I add a htmldb_item.hidden item, I receive the following error when I submit the tabular form to the Multi Row Update process:
    "Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. "
    My query:
    Select id
    ,htmldb_item.hidden(1,id)
    ,htmldb_item.checkbox(2,id, decode(field, 'Y', 'CHECKED', NULL))
    from table
    What am I doing wrong?
    is there a better way to process a tabular form with checkboxes?
    Or should I process all the rows manually by updating every record even if it hasn't changed (with a loop through all the records)?

    Tonnie, did you ever get an answer to this question?
    Michael Cunningham

  • Is there a way to open page with a new Tabular Form row?

    Hi All,
    I have a (non-manual) Tabular Form that works great. My requirement is to have the new page to open with a new row already added.
    I tried      onLoad="onLoadProcess()";
         <script language="JavaScript" type="text/javascript">
         function onLoadProcess(){
         doSubmit('ADD');
         </script>
    but it hits every onload so it loops, each submit causing another submit.
    Anyway of getting the rowcount in the tabular form without making a manual one?
    Thanks, Bill

    Bill,
    Here's a short (hah!) example of how to do it with a manual form. No idea of how hard it may be to convert to a wizard form.
    select
    x.PERSON_ID,
    x.ck ck,
    x.PERSON_ROLE,
    x.del
    from (
    SELECT
    apex_item.select_list_from_lov(1,person_id,'PEOPLE') PERSON_ID,
    apex_item.hidden(2,issue_id)||
    apex_item.hidden(3,wwv_flow_item.md5(person_id,issue_id,person_role)) ck,
    apex_item.select_list_from_lov(4,person_role,'ROLES') PERSON_ROLE,
    apex_item.checkbox(5,person_id||issue_id) del
    FROM HT_ASSIGNMENTS
    WHERE ISSUE_ID = :P7_ISSUE_ID
    union all
    select apex_item.select_list_from_lov(1,NULL,'PEOPLE') PERSON_ID,
    apex_item.hidden(2,to_number(:P7_ISSUE_ID))||
    apex_item.hidden(3,null) ck,
    apex_item.select_list_from_lov(4,NULL,'ROLES') PERSON_ROLE,
    apex_item.checkbox(5,null) del
    from dual) x
    Bill Ferguson
    Message was edited by:
    wbfergus

  • Select list null value issue - for filtering the tabular form report

    hello,
    I have a tabular form created on emp table and in the table their are entries for the employees who don't have a location, like it is null for some of the employees.
    Now I have created a select list item - for filtering the results based on location.
    my select query for select list item is
    select distinct location_name d,location_id r from emp order by 1
    -- so my select list contains all the distinct location_name including the null on my tabular form.
    so based on the selelcted value(in the select list), I am able to filter the results in my tabular form.
    but the thing is that when i try to select an null value from my select list - i am not able to filter my report - like its displaying all the records, its not filtering.
    can anyone help me out with this.
    thanks.

    Hi
    Try below select for LOV
    select distinct nvl(location_name,'No Location') d,nvl(location_name,'No Location') r from emp order by 1 And then change tabular from select where clause also use nvl(location_name,'No Location') like
    SELECT *
    FROM emp
    WHERE nvl(location_name,'No Location') = :Px_YOUR_ITEMBr, Jari

  • Issue with inserting edit item form using sharepoint designer 2013

    Hi,
    I inserted an edit form of a custom list in a site page using sharepoint designer-2013. But it is giving error "no item exists". 
    I am using default ListItemId Parameter with ID query string and I passed the query string parameter to that page. But still the result is same. But if I give any default value, page is displaying fine for that specific item although I dont pass any querystring
    to the page URL.
    Can you please guide me?
    Thanks in advance.
    Regards,
    Chaitanya

    Hi,
    From your description, I know you get issue when you add “edit form” of custom list to a page.
    I tried to reproduce your issue, and if I added “edit form” to page without “Advanced Mode”.
    I add “edit form” to page with steps below:
    Right click the page, click “Edit File in Advanced Mode”.
    Find source with keywords [ContentPlaceHolderId="PlaceHolderMain"].
    Choose INSERT tab in the Ribbon.
    Click “Edit Item Form”, and choose the custom list that you want to add.
    Save file, and go to the page.
    The screenshot below is my result:
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem with ajax in tabular form

    Hi
    I am trying a tabular form which contains two select list. Second select list is to populate according to the value of first select list. I have tried in following ways:
    First I have create an application item named ITEM_AJAX and an application process named PROC_AJAX as follows
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<data>');
    htp.prn('<select>');
    for rec in (SELECT '-Select-' d, -1 r FROM DUAL
    UNION ALL SELECT SEL_B_NAME d, SEL_B_ID r FROM
    SEL_B WHERE SEL_A_ID = :ITEM_AJAX)
    loop
      htp.prn('<option value="' || rec.r || '">' ||
    rec.d || '</option>');
    end loop;
    htp.prn('</select>');
    htp.prn('</data>');
    end;
    Then write following javascript code and placed it in page HTML header
    <script type="text/javascript">
    function updateSELB(filter, listName){
    var xml = null;
    var list = document.getElementById(listName);
    var listvalue = list.value;
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=PROC_AJAX',0);
    get.add('ITEM_AJAX', filter.value);
    ret = get.get('XML');
    if(ret){
      var s = ret.getElementsByTagName("select");
      if(s){
       var o = ret.getElementsByTagName("option");
       var oCount = o.length;
       list.options.length = 0;
       for(var i = 0; i < oCount; i++){
        var l_Opt_Xml = o[i];
    appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    list.value = listvalue;
    if (list.selectedIndex == -1)
      list.selectedIndex = 0;
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all)
    pSelect.options.add(l_Opt);
      l_Opt.innerText = pContent;
    } else {
      l_Opt.appendChild(document.createTextNode(pContent));
      pSelect.appendChild(l_Opt);
    </script>
    <script type="text/javascript">
    function setSELB(filter, list3)
    var s = filter.id;
    var item = s.substring(3,8);
    var field3 = list3 + item;
    updateSELB(filter, field3);
    </script>
    After that I have create a tabular form and set onchange="javascript:setSELB(this,'f04');" into the element attribute of first select list but it doesn’t work
    Please take a look at http://apex.oracle.com/pls/apex/f?p=1968:8    user: suman   pass: suman1
    Any help will be appreciated
    Thanks
    Suman

    Hello Joni
    There is a error in script but I don't know how to solve it. The error is something like that
    ReferenceError: bmi_SafeAddOnload is not defined
    bmi_SafeAddOnload(bmi_load,"bmi_orig_img",0);//-->
    Do you have any suggestion?
    Thanks
    Suman

  • Stored procedures with view in tabular form

    Dears,
    i use apex 4.2 and database xe 11g , i have create tabular depend on view and i use stored procedures in process after computation and validation , the problem that view not update
    this tabular form query
    select
    "ROWID",
    "DOC_DET_ID",
    "DOC_ID",
    "MOV_QNTY",
    BATCH_DET,
    "ITEM_NAME",
    "UOM_NAME",
    "SIZE_NAME",
    "COLOR_NAME",
    "STOREG_BRCHAS_BATCHINTERNN",
    "EXPR_DATE",
    "PROD_DATE",
    AVL_QNTY,
    storage_code,
    "LOCATION_CODE"
    from "#OWNER#"."STORAGE_MOV_DET_VIEW"
    WHERE DOC_ID =:P117_DOC_IDthis a process that i use stored procedure in it
    DECLARE
       V_OLD     NUMBER:=0;
    BEGIN
       FOR i IN 1 .. apex_application.g_f02.COUNT  LOOP
          IF apex_application.g_f02 (i) IS NOT NULL THEN
             SELECT MOV_QNTY INTO V_OLD
              FROM STORAGE_MOV_DET
              WHERE DOC_DET_ID =apex_application.g_f02 (i);
               IF apex_application.g_f13 (i) >  V_OLD THEN
                 V_OLD :=apex_application.g_f13 (i)- V_OLD;
               END IF;
         ELSE
             V_OLD :=apex_application.g_f13 (i);
         END IF;
         if  V_OLD  <> 0 then
            GET_EXTRACT_PARENT_ITEM(apex_application.g_f04 (i) ,
                                   :P117_STORAGE_CODE ,
                                   apex_application.g_f12 (i) ,
                                   V_OLD);
        end if;
    END LOOP;
    END;when i use update this error i found
    Current version of data in database has changed since user initiated update process. current row version identifier = "A80CEBCFF06062F98D920BC75CB415AE" application row version identifier = "BCBA67120A87213D64EE059E10F3B15C" (Row 1)please help

    Do you still have the Apply MRU process running? I assume you do because otherwise you wouldn't receive the error message. Is the process you are talking about running before the Apply MRU process? It seems it does. Try chaning the execution sequence and run this process after the automatic MRU process.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Issue With AMP 4.0 - forms service showing down on all Instances

    Hi,
    I've recently installed AMP4.0 on linux 5.3 EBiz 12.1.3.
    My issue is that the forms service is showing as down for all instances. Has anybody come accross this issue before?
    FEXDEV1-Oracle Forms FEXDEV1_ebizappsuat
    Service is down; 3 key components are down: FEXUAT1-Oracle Forms FEXUAT1_ebizappsuat, FEXUAT1_ebizappsuat.ebizappsuat.fexco.ie_forms, FEXUAT1_ebizappsuat.ebizappsuat.fexco.ie_HTTP Server
    Thanks,
    Keith

    Did you ever get this resolved

  • Having some trouble with hidden and checkboxes on tabular forms

    My query is as follows:
    select distinct tt.name tasktype,ct.name costtype,htmldb_item.checkbox(3,1,NULL,'Y:N',':') "Add Cost", htmldb_item.text(4,defabscost,9) defabscost,
    htmldb_item.hidden(5,tt.tasktypeid) tasktypeid, htmldb_item.hidden(6,ct.costtypeid) costtypeid
    from acct.defabscost d
    inner join work.tasktype tt
    on d.tasktypeid = tt.tasktypeid
    inner join acct.costtype ct
    on d.costtypeid = ct.costtypeid
    I have it wrapped within a function, which works fine. My issues are that I want to have the checkboxes function as row selectors. Basically, not pointing to primary keys (I have a compound primary key on this table). If selected, fill in the table, if not selected, erase from table. Also, My hidden items kinda contain the "primary keys". When I set these as hidden, I see the column, but there is no data. I don't want to see the columns at all, but when I set these to "hidden" in the attributes, I can't reference them with htmldb_application.g_FXX. Any suggestions?

    I actually figured out how to get the htmldb_item.hidden part working properly. I misread the guide, thought it was a comma between fields and not a concatenation. Works fine. But I still need to get the checkbox to work like I want.

  • Issue with Checkboxes

    Hello,
    I am working with LiveCycle ES4 on PC.
    I created a form that include checkboxes, I have it set at default (previously set to cross) on Check Style.
    The file works fine on PC.
    When opened in PDF Expert on my IPhone, I check the the boxes, save it, and then when opening the file on PC, the checkboxes disappear.
    When looking at the Properties, PDF Expert added the font Zapf Dingbats as the symbol "X" for the checkbox, is not embedded so it does not appear on PC since it is a Mac font.
    Now, I know it is a PDF Express problem.
    But my question however, is if there's a way to force a font onto the checkbox that PDF Expert can use.
    Or maybe if there's an alternative to checkboxes?
    Any help is appreciated.

    If you're using a border color for the check boxes, there's not a lot you can do, but turning off the "enhance thin lines" preference will probably make it better if it's currently on (see below). At the smaller zooms you will see this and it's affected by the resolution preference: Edit > Preferences > Page Display > Resolution. Changing this setting won't fix this behavior, but you should set it to match the monitor you're using.
    If the boxes are part of the underlying page contents and you're not using a border color for the check boxes (though it doesn't sound like this is the case for you), depending on how the boxes are represented in the PDF (text, vector, or image), adjusting various display preferences in Acrobat/Reader may have an effect. I'm thinking of things like:
    Edit > Preferences > Page Display > Enhance Thin Lines (affects vectors only, turn off)
    Edit > Preferences > Page Display > Smooth Line Are (affects vectors only, probably won't make a difference)
    Edit > Preferences > Page Display > Smooth Text (affects text only, probably not the problem)
    Edit > Preferences > Page Display > Smooth Images
    Without knowing how the boxes are represented in the PDF, it's hard to say what you can do about it, but I almost always use a character from a font for my check boxes to better avoid issues like this.

  • Issue with parts of a form that repeat with a button

    I have added several parts to a form that a user can click to add a new item.  The parts are tables that have rows that repeat that are added by clicking a button.  This addition of rows works fine.  However I am having two issues that I need some assistance with....
    1.  I have added a table nested within a table.  Rows added as a user clicks to add a row.  This works fine up to eight rows.  Rows beyond eight do not flow to the next page.  They seem to be added at the bottom of the second page of added rows (can't see them to know if they adding).
    2. The same table, when adding rows, creates rows over a separate table below it.  I am not sure why the next table does not get pushed down by adding rows to the table above it.
    I am a LiveCycle newbie so any help would be greatly appreciated.
    Thanks.
    Shane

    The subform is not Flowed in the form.. Select the root node (for Example Page1) in the Heirarchy and set the Type to Flowed to address both the issues.
    If your Table is wrapped in a Subform, make sure for the Subform you have checked the "Expand to Fit" for Height in the Layout tab.
    Thanks
    Srini

  • Having issues with checkbox

    Hi all.  I am fairly new to javascript and I am hoping someone can assist in what I am trying to do.  I need to do this right now using Javascript - not Livecycle.  Have not learned Livecycle yet plus the software version I am using does not support dynamic forms created by Livecycle
    I am trying to have a check box show based on whether another field is blank or not
    I have tried using two different scripts but with no luck.  Am I missing a step
    I have gone into said checkbox. 
    Check style is check
    Export Value is yes - but there is no value in my script
    I have tried having the check the box stating checked by default in the properties.  I have also tried having it not ticked.
    This is the code I am using in the actual field (not checkbox as that only allows action on mouse actions an the staff may not click anywhere in there if the form prefills for them
    //GET THE THIRD PARTNER
    var CPartner3 = this.getField("FormValues.accountNames_3").value
    var cb = this.getField("Checkbox34").value
    cb.defaultIsChecked(0, false);
    if (cPartner3 !="")
      cb.defaultIsChecked(0, true);
    //end
    I have also tried having if (cParther3 !="")
      cb.presence = visible
    else
    cb.presence = hidden
    // end
    Neither work
    The other code that places the word Partner works fine
    Any thoughts??

    Yes.  The checkbox export value is Yes.  The tickbox stating default is blank.  I want the checkbox to tick IF field is NOT empty
    Last question, is there a ValidateNow() code.  The solution works if I am working physically on the form and physically type something in the field but the form is being prepopulated from our banking system.  So the field is not blank but the tick boxes do not happen unless I physically click into the field and type. Same thing happened to my other calculations and I was able to fix with a calculateNow() Page Action upon opening

  • Checkbox in Tabular Form (Solution to span multiple pages)

    Hi,
    We had a case where a large report needed to have check boxes. These check boxes would populate a list of id's which we then processed for a specific task. By default APEX doesn't support this.
    After spending some time on this, I thought I'd post my solution to help any others who experience the same problems. For this example we will use P10
    1. Create a new "normal" report.
    SELECT e.*, APEX_ITEM.CHECKBOX(1,e.EMPNO,'onClick="updateList(this);"',:P10_LIST, ',') AS Cancel,
    FROM emp e
    2. Create a hidden item called P10_LIST
    3. Add an HTML region to the page whose template is "No Template" (do this so it doesn't show up. Call the region "JavaScript". Set its sequence to 1
    4. Add the following in the JavaScript region:
    <script src="http://SERVER_NAME/String.js" type="text/javascript"></script>
    <script src="http://SERVER_NAME/Ajax.js" type="text/javascript"></script>
    <script type="text/javascript">
    function updateList(pObject){
    vItem = 'P10_LIST';
    myAjax = new Ajax();
    vList = myAjax.getItemValue(vItem);
    //Determine to remove or add from list
    if (pObject.checked) {
    //Add item
    vList = vList.listAppend(pObject.value);
    else{
    //Remove from list
    vList = vList.listRemoveItem(pObject.value);
    }//if
    //Set the session value
    myAjax.setItemValue(vItem,vList);
    //Set the HTML value
    document.getElementById(vItem).value = vList;
    </script>
    This script:
    - Loads the List from the session
    - Modifies the list
    - Stores it in the session
    5. The JavaScript region references 2 files, which you'll need to add to your server. They are as follows:
    Ajax.js
    function Ajax(){
    // TODO: Enter proper names etc.
    this.appProcessNameNull = 'AJAX_null';
    this.appProcessNameReturnItem = 'AJAX_ReturnItem';
    this.tempItem = 'P0_AJAX_TEMP';
    * TODO: Document
    * Sets Item in session
    Ajax.prototype.setItemValue = function(pItem,pValue,pAppProcess){
    if (pAppProcess == null)
    pAppProcess = this.appProcessNameNull;
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pAppProcess,0);
    get.add(pItem,pValue);
    gReturn = get.get();
    * TODO: Document
    * @param pItem Name of item to get
    * @param pTempItem Name of temp item
    * @param pAppProcess Application Process to call which will return item
    * @return session value
    Ajax.prototype.getItemValue = function(pItem,pTempItem,pAppProcess){
    if (pTempItem == null)
    pTempItem = this.tempItem;
    if (pAppProcess == null)
    pAppProcess = this.appProcessNameReturnItem;
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pAppProcess,0);
    get.add(pTempItem,pItem);
    gReturn = get.get();
    return gReturn;
    String.js
    // From http://www.somacon.com/p355.php
    String.prototype.trim = function() {
         return this.replace(/^\s+|\s+$/g,"");
    // From http://www.somacon.com/p355.php
    String.prototype.ltrim = function() {
         return this.replace(/^\s+/,"");
    // From http://www.somacon.com/p355.php
    String.prototype.rtrim = function() {
         return this.replace(/\s+$/,"");
    * Appends value to list
    * @param pValue Value to add to list
    * @param pDelimeter Defaults to comman
    String.prototype.listAppend = function(pValue, pDelimeter){
    if (pDelimeter == null)
    pDelimeter = ',';
    vStr = this;
    if (vStr.length == 0)
    vStr = pValue;
    else
    vStr = vStr + pDelimeter + pValue;
    return vStr;
    * Removes a value from list
    * @param pValue Value to remove from list
    * @param pDelimeter Defaults to comman
    String.prototype.listRemoveItem = function(pValue, pDelimeter){
    if (pDelimeter == null)
    pDelimeter = ',';
    vStr = this;
    vStr = pDelimeter + vStr + pDelimeter;
    // Remove value
    vStr = vStr.replace(pDelimeter + pValue + pDelimeter, pDelimeter);
    //Remove prefix and suffix items
    if (vStr.length > 0 & vStr.charAt(0) == pDelimeter){
    vStr = vStr.substring(1);
    if (vStr.length > 0 & vStr.charAt(vStr.length-1) == pDelimeter){
    vStr = vStr.substring(0,vStr.length - 1);
    return vStr;
    6. On Page 0 Create a hidden Item called: P0_AJAX_TEMP
    (Note: this is can be used for all your AJAX calls)
    7. Create an Application Process called: "AJAX_null". Process Text: null;
    8. Create an Application Process called: "AJAX_ReturnItem". Process Text:
    begin
    htp.prn(v(v('P0_AJAX_TEMP')));
    end;
    If you look at the Ajax.js you'll notice points 6,7, and 8 are all customizable etc... I just put it in so you can test right away.
    Now the user can select items on multiple pages (if pagination applies). Once they hit a submit button you can use P10_LIST to process your values.
    Hope this helps.
    Martin

    Hi Martin,
    I was trying to use your funda in my App. But i dont know why it is not doing anything.
    Also i'm facing a very small but severe problem with one of my report. I am using checkbox. So that user will be able to select all those records he/she wants. but the problem is that when i'm selecting few records with the help of the check boxes, selections are there. When moving to other page and coming back to that page, selections are gone. I think selections should not go like this. Otherwise the user will get confused.
    Can you tell me how can retain the check box selections??
    Thanks
    Sudipta

  • Issues with LiveCycle ES4 - "Distribute Form" greyed out and "email button" not functioning

    Bought this software on 8/1/13.
    Designed my first form, "saved to repository" and proceeded to test. The email function for whatever reason does not work. Went back and examined the properties to the button, I have it set up correctly. In fact the XMS format works perfect, but I want the form to come via PDF when emailed. This feature is not coming through on email.
    I am not sure if the above two issues are related however I did read that in the stand-alone software, the "distribute form" is not offerred which I wonder if this the reason it is greyed out.
    Can anyone help me work through the "email button" issue?

    If the PDF submits to a server-side script URL it can bypass client-side email software.
    Try the online PDF submission examples and see if it works for you in Mozilla FireFox:
    http://www.pdfemail.net/examples/
    You should also make sure the browser is using the Adobe Reader plugin as the default PDF reader.
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

Maybe you are looking for