How to save the session states for a tabular form WITHOUT using check boxs?

Greeting guys,
As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
Thanks in advance.
Luc

The following is the first collection solutin I've tried:
htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
for i in 1..p_row_num loop -- Loop on the whole form rows
if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
--If either of them has some input values, the row should be saved into the colleciton.
then
htmldb_collection.add_member(
p_collection_name => 'TEMP_TABLE',
p_c001 => htmldb_application.g_f01(i),
p_c002 => htmldb_application.g_f03(i),
p_c003 => htmldb_application.g_f04(i),
p_c004 => htmldb_application.g_f05(i),
p_c005 => htmldb_application.g_f06(i),
p_c006 => htmldb_application.g_f08(i)
end if;
end loop;
Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error.

Similar Messages

  • How to save the edit data temporarily in tabular form while pagination

    Hi,
    I need to hold the edit data temporarily before final submitting the page in apex 4.0 tabular form while navigating the row pagination.
    well i am expecting some easiest method.
    Saroj

    I think you have to read about apex collection.

  • How to consolidate the financial statements for 3 company codes, assigned t

    Hi Friends,
    How to consolidate the financial statements for 3 company codes, assigned to 3 different companies, 3 different fiscal years, 3 different controlling areas and all the 3 Company Codes assigned to same chart of accounts in the same client?
    Can we need any ABAP program for this (or) Is it possible using Report Painter?
    Please help me.
    Thanks

    Hi friend,
    Is it a real-time situation or something you are visualising ?
    For consolidation, you can use a group chart of accounts and select that in the operative chart of accounts for consolidation purposes.  This would work provided the company codes use the same operative chart of accounts and fiscal year.
    I hope the above would be helpful to you.
    Regards,

  • Modifying the search criteria for my tabular form...!!!!

    Hey guyz i m back again with a query related to my tabular form that i have developed through your help...
    I presented my application to the management 2day...eveything went fine but they want me to modify the search criteria according to thr needs.
    1. They want me to include a drop box which has all the fields dispalyed in the table like .. EMPNO,STC,NAME,NATIONALITY,POSITION,
    & beside this drop box they want me to include a empty field such that if select NATIONALITY from the drop down box and enter the concerned nationality in the search box and press Search button i should get all the emp with particular nationality
    FOR EX: In the drop down box i select NATIONALITY and in the search box i type GERMAN ,... now when i click i should be getting all germans available in the company
    2.We have got evaluations for all emp in percentages
    Now from the drop down i select POSITION in the box beside i enter( HP:80-90) then i should be able to retrieve all the EMP working with position HP and evaluations between 80%-90%
    FOR EX : DROP BOX: Position
    TEXT ITEM: HP:80-90
    Click Search I get all the EMP with evaluation between 80-90 and so on
    How should i modify this ......creating a separate search box for each column would have been easy but how should i implement this what the management wants from me..????

    hi
    try something like this.
    key-exequery trigger(item level).
    begin
    if
      :code.pno is not null OR
      :code.chasis is not null OR
      :code.certi is not null
    then  --> SEARCH IN  TABLE
      go_block ( 'block' );
      :system.message_level := '10';
      execute_query;
      :system.message_level := '0';
      if
           :block.id is null
      then
        go_block ( 'code' );
        message ( 'Nothing found with the given criterias.' );
        message ( ' ' );
      end if;
    /*if
         :code.code is not null OR
      :code.branch || :code.class || :code.year || :code.serial || :code.cno || :code.edno is not null OR
      :code.issue is not null OR
      :code.inscode is not null OR
      :code.ID is not null
    else  --> SEARCH IN block2 TABLES
      go_block ( 'block2' );
      :system.message_level := '10';
      execute_query;
      :system.message_level := '0';
      if
           :block2.IDis null
      then
        go_block ( 'code' );
        message ( 'Nothing found with the given criterias.' );
        message ( ' ' );
      end if;
    end if;
    end;
    when-new-form-instance trigger.
    begin
    for l_rec in ( select distinct year from ins1 where year is not null order by year desc ) loop
         add_list_element ( 'code.year', get_list_element_count ( 'code.year' ), l_rec.year, l_rec.year );
    end loop;
    exception when others then null;
    end;
    key-exit trigger.
    begin
    if
         get_item_property ( name_in ( 'system.cursor_item' ), item_canvas ) in ( 'Block_Name1', 'Block_Name2' )
    then
      go_block ( 'code' );
    else
         exit_form( no_validate );
    end if;
    end;
    when-button-pressed trigger.
    begin
    do_key ( 'EXECUTE_QUERY' );
    end;
    pre-query trigger.(block level).
    begin
    :ins1.serial := :code.code;  --> ?? still needed ?
    :ins1.branch := :code.branch;
    :ins1.class := :code.class;
    :ins1.year := :code.year;
    :ins1.serial := :code.serial;
    :ins1.cno := :code.cno;
    :ins1.edno := :code.edno;
    :ins1.inscode := :code.inscode;
    :ins1.producer := :code.producer;
    :ins1.broker := :code.broker;
    :ins1.beneficiary := :code.benecode;
    if
         :code.issue is not null AND :code.todate is null
    then
      set_block_property ( 'block', onetime_where, ' trunc ( issue ) >= trunc ( :code.issue )' );
    elsif
         :code.issue is null AND :code.todate is NOT null
    then
      set_block_property ( 'block', onetime_where, ' trunc ( issue ) <= trunc ( :code.todate )' );
    elsif
         :code.issue is NOT null AND :code.todate is NOT null
    then
      set_block_property ( 'block', onetime_where, ' ( trunc ( issue ) >= trunc ( :code.todate ) AND trunc ( issue ) <= trunc ( :code.todate ) )' );
    end if;
    end;
    key-next-item trigger(block level).
    begin
    if
         :block.ID is not null
    then
      :global.ref := :block.ID;
      exit_form ( no_validate );
    else
         go_block ( 'code' );
    end if;
    end;Sarah

  • Is there anyway to change the security questions for your apple Id without using the email address as I've forgotten that as well -.-

    This is kinda annoying :L I've recently bought a fifth gen iPod to replace my broken fourth and soon as I've gone to buy something it's asked me to provide security questions and since its been over 2 years I've forgotten both my questions/answers but also the email address used for back up is there someone I can contact or even a way round it ?

    First try:
    Can I change the answers to the security questions for my Apple ID?
    Yes. You can change the answers to the security questions provided when you originally signed up for your Apple ID. Go to My Apple ID and click Manage your Apple ID. Sign in with your Apple ID name and password, go to the section Password and Security and click Reset your security information.
    next
    Rescue email address and how to reset Apple ID security questions
    Last contact iTunes by:
    https://expresslane.apple.com/Issues.action
    Click on "Account Management" and then on "Forgotten Security Questions". That will take you to a page where you can talk to iTunes Support right away, or you can schedule a call to talk to them. They should be able to get you squared away so that you can log on to the old Apple ID.

  • How to disable the date picker in manualy Tabular form?

    I develope an application with apex 3.2 , I builded a tabular form manualy with APEX API and I have an item 'date picker' , I want that once user want insert the date , he can do it only by clicking on the date picker and not into the item
    I try to use the code that was provided by 'Desnes Kubicek' on his blog , but it does not works
    Any help!!!!!
    I used this code , but that is for an one item form
    <script type="text/javascript">
    function disFormItems(item1){
    disItem = document.getElementById(item1);
    disItem.style.background = '#eeeeee';
    disItem.disabled = true;
    </script>
    2. Region Footer javascript:
    <script type="text/javascript">
    disFormItems('P18_DATE_PICKER');
    </script>

    Hi,
    Try something like this
    SELECT
    APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy',12,15,'readonly="readonly"','f04_' || ROWNUM) hd
    FROM EMP;Thanks,
    Manish

  • How to move the changes from one system to other without using CMS

    Hi
    In our project they are migrating NWDI 6.40 to NWDI 7.0.
    During migration CMS won't be available.
    Could you plesae tell what are the different options are there to move the WebDynpro changes from (NWDS) Development to Quality system and then production system without using CMS server?
    If i will create a development package and import this packgae in Quality package will my new changes also be available in Quality server?
    Thanks & Regards
    Susmita

    Hi Susmita
    I wasn't completely sure, but from your description of your problem, it seemed like you would have access to your DTR during your upgrade. The following solution assumes as much. If this is not the case, you'll need to do things slightly differently, but the solution will still be possible.
    Depending on the scope and size of your changes, it may be practical for your developers to deploy directly from their NetWeaver Developer Studio (or for a designated administrator to install the NWDS and do the same). To do so, from the Development Configurations perspective, create a new NWDS project for each of the DCs you want to deploy. Then right-click the project and choose from one of the deployment options. (Deploy new archive and run will allow you to see if your deployment has taken effect.) When deploying, the target server is the one set up as your J2EE engine in the NWDS properties - you'll consequently have to modify this when the target server for your deployment changes (from QA to production, or vice versa).
    Note that this is only applicable in certain situations, and only as a short term stopgap measure. This sort of practice - developers or administrators deploying haphazardly to servers other than those intended for development - is precisely what the NWDI is designed to prevent (and is one of very few things it's fairly good at doing). For instance, if your QA and production systems are attached as TEST and PROD runtimes systems respectively in your NWDI, a full assembly and subsequent full deployment would usually occur to these servers when deploying with the NWDI. This is a much stronger guarantee of consistency than the build that will be performed within your local NWDS to deploy your changes. (Conversely, the rigidity of the assembly is perhaps the NWDI's greatest design flaw.)
    (Also, Snehal: thanks for the information on the sapmake_util blog. It's not something I've encountered before and looks very useful.)
    James

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • How to tune the Update statement for 20 million rows

    Hi,
    I want to update 20 million rows of a table. I wrote the PL/SQL code like this:
    DECLARE
    v1
    v2
    cursor C1 is
    select ....
    BEGIN
    Open C1;
    loop
    fetch C1 bulk collect into v1,v2 LIMIT 1000
    exit when C1%NOTFOUND;
    forall i in v1.first..v1.last
    update /*+INDEX(tab indx)*/....
    end loop;
    commit;
    close C1;
    END;
    The above code took 24 mins to update 100k records, so for around 20 million records it will take 4800 mins (80 hrs).
    How can I tune the code further ? Will a simple Update statement, instead of PL/SQL make the update faster ?
    Will adding few more hints help ?
    Thanks for your suggestions.
    Regards,
    Yogini Joshi

    Hello
    You have implemented this update in the slowest possible way. Cursor FOR loops should be absolute last resort. If you post the SQL in your cursor there is a very good chance we can re-code it to be a single update statement with a subquery which will be the fastest possible way to run this. Please remember to use the {noformat}{noformat} tags before and after your code so the formatting is preserved.
    David                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can the DFF created for a PO form be used in PO web based page.

    Hello,
    I have created a DFF on the PO form using the attribute2 of the PO_HEADERS table. How can I create a DFF on the web page based 'buyer work center' page. My final goal is to use DFF for both the web based pages and forms.
    Thanks for your help
    Raj

    hello Pradeep,
    Whats the difference b/w DFF and custom DFF ?
    I'll tell the steps what I did.
    1. Application Developer > Flex Field > Descriptive > Register
    Registered a DFF for PO_HEADERS_ALL table and used Attribute2.
    2. Application Developer > Flex Field > Descriptive > Segments
    So I used the DFF in the PO form. I want to see a DFF in the PO page also when the below navigation is used.
    Purchasing: >Buyer Work Center>Orders. Opens a PO page.
    Thanks for the help.
    Raj

  • How to get the Row and Column values in ALV (without using Objects)

    Hi All,
    I need to get the Row / Column when double click is used in ALV, I can use the double click event for this. However, I do not want to use the Object Oriented ALV. I want to implement the same functionality using general (using functions) ALV.
    Is there any way to get the row / column values for a Generia (non-OOPs) ALV report.
    Please help.
    Thanks,
    Vishal.

    Hello,
    The only think you have to do is to get the index where the user clicked, and then read the internal table you sent to the alv
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = 'prg_name'
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND' " this is to the click event!!
          i_callback_top_of_page   = 'TOP_OF_PAGE'
          is_layout                = alv_layout
          it_fieldcat              = alv_fieldcat
          i_save                   = 'A'
          it_events                = alv_events[]
        TABLES
          t_outtab                 = i_totmez.  ---> TOUR IT.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    " then....
    FORM user_commandUSING r_ucomm     TYPE sy-ucomm
                                    ls_selfield TYPE slis_selfield.
    " r_ucomm -> HAS THE STATUS
    " ls_selfield-tabindex  -> HAS THE SELECTED INDEX
    " THEN READ THE INTERNAL TABLE
    " HERE YOU WILL HAVE THE SELECTED ROW
    READ TABLE i_totmez INDEX ls_selfield-tabindex.
    ENDFORM.
    cheers,
    Gabriel P.

  • How to transfer the attributes of one page to other without using submit

    hi friends,
    I have faced a prob when i use submit to transfer the parameter from page1 to page 2 i can get the parmeter in page 2. But when u try to implement through action of onclick i cannt able to fetch the value of the parameter in the jsp page2. is there is any other option equivalent to request.getParmeterValues. in setting the attribute.
    can any one give me the solution to overcome this prob it will be appreciated and thanked by me.

    Hi Anand,
    We can send request to server with submitting the page.
    why dont you try using xml over http.
    This is some thing like thru java script you can pass the values to some Servlet, construt the object there, while returning from the servlet just put your response thru printwriter pw object like pw.print(response);
    In java script you can mensioned to retrieve the servlet result.
    check the following code, it would help you
    EXPLORER_xmlHttp = new ActiveXObject("Microsoft.xmlHttp");
    serverURL = "someUrl.com"+ "method=" + "callMethod.do";
    EXPLORER_xmlHttp.open("POST",serverURL,true);
    EXPLORER_xmlHttp.setRequestHeader("ClientType","HTML");
    EXPLORER_xmlHttp.onreadystatechange = Return_Method_onready;
    (control will come from servlet to the above method)
    set the other headers what ever you want...
    then set the input parameters
    EXPLORER_xmlHttp.send(inputAttr);
    from Servlet you get the response directly to the javaScript method which you specified.
    this is how it works.
    Regards
    Jyothi Prakash

  • How to upload an rtf file into a table? (without using UNIX box)

    Hi All,
    Our requirement is to upload a rtf file into table in database.
    Later that rtf is used to generate a report.
    Is it possible to upload the file directly into a table by using SQL developer?
    our requirement is to upload the files without placing them in a particular path in unix box.
    Thanks in advance
    Regards
    Sudeep

    If you are in EBS
    When you upload Template in Application
    I guess It'll get stored in apps.XDO_LOBS table, in FILE_DATA Column
    select * from apps.XDO_LOBS
    where lob_code=<'con. program short name'>
    and file_name= <'your.rtf'>
    Thanx
    Rahul

  • How to find the Commitment cost for a PM order using tables ?

    Hello all ,
           How to find the Commitment cost for a given PM order using table  .
    Thanks and regards ,
    Prem.

    Issue got resolved

  • How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column

    Please Help!!!
    How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column.
                                      January 2014         January
    2013                            +/-
                    Region   Entry   Exit  Total    Entry   Exit   Total   (Total of Jan2014-Total of Jan2013)
                    A               2         3      
    40        5       7        30                    40-30= 10

    What is a table structure? Sorry cannot test it right now..
    SELECT <columns>,(SELECT Total FROM tbl WHERE Y=2014)-(SELECT Total FROM tbl WHERE Y=2013)
    FROM tbl
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for