How to compare, current value in :block.text_item with the database value

Hi
Could you please tell me
How to compare the current value in :block.text_item with the corresponding database column value.
I am using forms 10g
There is block and there is an text Item in that block.
When I run the form and query the block (tabular), the :block.text_item shows me, whatever value there in the database.
Now I add some value in the :block.text_item to the existing value.
now
the :block.text_item contains old+ new added value
whereas
the database table contains 'old' value
Now on a button click , I want to find out what is the value that I have added
Could you please tell me, is it possible without writing a select query?

Hello,
Now on a button click , I want to find out what is the value that I have addedSo you mean always user will add value in the existing value. Because this way will fail in one case. Let say
Value in Database is = ABCD
User opened the form and he removed the D and write E and now value is ABCE and length is still same 4. So, there is no addition.
Anyway you can know the database value at runtime there is one property for item called DATABASE_VALUE. It gives the value which is in database while you are running the form before save. and you can use like this..
Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level
DECLARE
  vItemValue DATATYPE; -- Set the data type according to your desired field.
  vValueAdded DATATYPE; -- Set the data type according to your desired field.
BEGIN
  vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE);  -- It will return you the database value in vItemValue variable.
  IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN  -- It mean something change or added
    vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1);
    MESSAGE('Added value is : '||vValueAdded);  -- It will show you the added value.
  END IF;
  -- now suppose you want to show the old and new value in message not the added one
  -- Then no need of IF condition. You can just use message like this
  -- And i would prefer to use like this way
  MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
  MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
END;Hope it is clear.
-Ammad

Similar Messages

  • How associating an XMLSchema to an XMLType Field with the database model ?

    How can I precise the XMLSchema to an XMLType Field with the database model ?
    I know how to do it in a SQL Syntax :
    CREATE TABLE xwarehouses (
    warehouse_id NUMBER,
    warehouse_spec XMLTYPE)
    XMLTYPE warehouse_spec STORE AS OBJECT RELATIONAL
    XMLSCHEMA "http://www.oracle.com/xwarehouses.xsd"
    ELEMENT "Warehouse";
    , but we have decided to generate the script with the Jdeveloper database modeler tools, and we don't how to precise this with using this tools ?
    Anyone could help me ?

    I'm not sure that it answers your question but under the tools menu there is an option called register schema with XDB.

  • How to compare each item in a Stack with the next one??

    I am trying to compare each string value with the next one in a stack.
    I think I am doing something wrong when I store the poped string in a temp?
    Object is:
    -----to read in a stack and compare each element. We are looking for an "adj" next to a" NP*".
    -----if we find a "adj" next to a "NP*" then we need to remove the "adj" and push the "NP*" on a new stack.
    -----if we find something other than an "adj" next to a "NP*" then we just need to push that item on the new stack
    we continue through the stack until it is empty.
    -----once we have checked the entire stack for "adj" next to "NP*" and changed them all, we need to send the new stack back to the method for another test.
    -----this time we are looking for a "det" next to a "NP*"
    -----if we find
    ---------remove the "det" and change the "NP*" to "NP"
    there are more test after that one but, if I can get here I think I can get through the rest.
    In all this is a grammar checking program, checking for correct english.
    thanks for the help, my mind feels like mush a new perspective will help,
    steven
    Here is what I have so far:
    public void structureCheck(Stack s, int wordCount, boolean inOrder)throws EmptyStackException{
              Stack orderStack = new Stack();
              int parseCount =0;
              boolean display = false;
              int count = 0;
                   if(inOrder == false){     
                        for(int i=0; i<wordCount;i++){                                        
                             String temp = ""+s.pop();
                                  if(temp.equals("n")){
                                       temp = "NP*";
                             orderStack.push(temp);
                             parseCount++;          
                   structureCheck(orderStack,parseCount,true);     
                   if(inOrder == true){
                        parseCount= wordCount;
                        System.out.println("parseCount  "+parseCount);
                        for (Enumeration e = s.elements(); e.hasMoreElements();){
                             for(int i=0; i<parseCount; i++){
                                  String temp = ""+s.pop();
                                  String temp2= ""+s.pop();
                                  String temp3= ""+s.pop();
                                  System.out.println("temp  "+temp+"  count  "+count);
                                  /*temp = temp;
                                  System.out.println("temp2  "+temp+"  count  "+count);
                                  temp = temp;
                                  System.out.println("temp3  "+temp+"  count  "+count);*/
                                  count++;
                                  if((temp.equals("adj") & temp2.equals("adj") & temp3.equals("NP*"))){
                                       System.out.println("temp  "+temp+"  temp2  "+temp2+"  temp3  "+temp3);
                                       temp="NP";                                   
                                  orderStack.push(temp3);
                                  parseCount++;
                                  /*else{     
                                       orderStack.push(temp3);
                                       parseCount++;
                   //structureCheck(orderStack,parseCount,false);
                   System.out.println("parseCount=  "+parseCount+" inOrderStack=  "+orderStack);
         }          

    This code is different from yours. For one thing, the first part, where inOrder is false, is not included because you did not post what behavior that is supposed to perform. The code below does what you posted...it puts some Strings into a Stack, then parses the Stack. If adj is followed by NP* then adj is removed. Then the new Stack is parsed to find det followed by NP*, and det is removed while NP* is changed to NP.
    import java.util.Stack;
    import java.util.Vector;
    public class Test {
       public static void main(String[] args) {
          Stack stack=new Stack();
          Stack stack2=new Stack();
          String[] s={"no","adj","NP*","adj","not","NP*","adj","NP*","dumb","det","NP*"};
          for(int i=s.length-1;i>-1;i--) stack.push(s);
    stack=structureCheck(stack,"adj","NP*","NP*");
    for(int i=stack.size()-1;i>-1;i--)
    System.out.println(stack.elementAt(i));
    System.out.println();
    stack=structureCheck(stack,"det","NP*","NP");
    for(int i=stack.size()-1;i>-1;i--)
    System.out.println(stack.elementAt(i));
    public static Stack structureCheck(Stack s,String tofind,String tomatch,String tochangeto) {
    Stack orderStack = new Stack();
    for(int i=0;i<s.size();i++) {
    String str=(String) s.elementAt(i);
    if(i<s.size()-1 && str.equals(tomatch) && ((String) s.elementAt(i+1)).equals(tofind)) {
    i++;
    orderStack.add(tochangeto);
    } else
    orderStack.add(str);
    return orderStack;

  • Compare the current value with the previous value in the same column

    Hi all,
    I have to include a statement in a query which allows to compare the current value of column A with the previous value of column A (same column). from there, I need to add a condition in order to have the expected result.
    Let's take an example to illustrate what I want to achieve:
    I have the following columns in table called 'Charges':
    Ship_id batch_nr Order_nr Price
    SID1111 9997 MD5551 50
    SID1111 9998 MD5552 50
    SID1111 9999 MD5553 50
    SID2222 8887 MD6661 80
    SID2222 8887 MD6662 80
    SID2222 8887 MD6662 80
    SID3333 6666 MD7771 90
    I want to check if the ship_id of row 2,3 (and more if available) is equal to the ship_id of row 1.
    If it is the case, then value 'together with the first batch_nr' in row 2 and 3 under Price column. If not, then keep the original value of Price column
    PLease see below the expected result:
    Ship_id batch_nr Order_nr Price
    SID1111 9997 MD5551 50
    SID1111 9998 MD5552 together with 9997
    SID1111 9999 MD5553 together with 9997
    SID2222 8887 MD6661 80
    SID2222 8887 MD6662 together with 8887
    SID2222 8887 MD6663 together with 8887
    SID3333 6666 MD7771 90
    Thanks in advance for your help, it is really urgent.
    Imco20030

    Hi,
    user11961002 wrote:
    Hi,
    Here is the query that I use:
    [ select
    sl.ship_id,
    o.ordnum,
    o.reffld_5 "BatchNR",
    sum(tc1.chrg_amt) "FreightPRC",
    sum(tc2.chrg_amt) "FuelPRC",
    sum (tc1.chrg_amt + tc2.chrg_amt + tc3.chrg_amt) "Total Price"
    from ord_line ol
    join ord o on (ol.ordnum = o.ordnum and ol.client_id = o.client_id)
    join shipment_line sl on (ol.ordnum = sl.ordnum and ol.client_id = sl.client_id and ol.ordlin = sl.ordlin)
    join adrmst a2 on (o.rt_adr_id = a2.adr_id)
    left join tm_chrg tc1 on (tc1.chargetype = 'FREIGHT' and tc1.chrg_role = 'PRICE' and tc1.ship_id = sl.ship_id)
    left join tm_chrg tc2 on (tc2.chargetype = 'FUELSURCHARGE'and tc2.chrg_role = 'PRICE' and tc2.ship_id = sl.ship_id)
    where sl.ship_id = 'SID0132408'
    group by o.client_id, o.ordnum, o.reffld_2, sl.ship_id, a2.adrnam, a2.adrln1, a2.adrpsz, a2.adrcty, a2.ctry_name,
    o.reffld_5, ol.early_shpdte
    order by ship_id
    ]That looks like the query you were using before you started this thread.
    Modify it, using the analytic fucntions FIRST_VALUE and LAG, like I showed you.
    I see that you did simplify the problem quite a bit, and it's good that you did that.
    It doesn't matter that your real problem involves joins or GROUP BY. Analytic functions are calculated on the results after all joins and GROUPS BYs are done. Just substitute your real expressions for the simplified ones.
    For example, in your simplified problem, there was a column called order_nr, but I see now that's it's really called o.ordnum. Where the solution I posted earlier says "ORDER BY order_nr", you should say "ORDER BY o.ordnum".
    Here's a less obvious example: in your simplifed problem, there was a column called price, but I see now that it's really SUM (tc1.chrg_amt + tc2.chrg_amt + tc3.chrg_amt). Where the solution I posted earlier says "TO_CHAR (price)", you should say "TO_CHAR (SUM (tc1.chrg_amt + tc2.chrg_amt + tc3.chrg_amt))". (You can't use an alias, like "Total Price", in the same SELECT clasue where it is defined.)
    I removed some columns from the select as they are not relevant for the wanted action like 'adress details or other references'.
    Now here is the result:
    Shipment ID     Order Number     WMS Batch     Freight      Fuel Price Order Total Price
    SID0132408     MDK-000014-05602649     04641401     110     10 120
    SID0132408     MDK-000014-05602651     04641402     110     10 120
    SID0132408     MDK-000014-05602652     04641363     110     10 120
    as you can see, the 3 orders have the same shipment ID.
    The expected result should be shown under column 'Total Price' as follows:
    Shipment ID     Order Number     WMS Batch     Freight      Fuel Price Order Total Price
    SID0132408     MDK-000014-05602649     04641401     110     10 120
    SID0132408     MDK-000014-05602651     04641402     110     10 tog with 04641401
    SID0132408     MDK-000014-05602652     04641363     110     10 tog with 04641401Okay, so those are the correct results that I asked for, plus the incorrect results you're getting now. Thanks; extra information doesn't hurt.
    But where is the raw data that you're starting with?
    It looks like you tried to format the code (but not the results) by typing this 1 character:
    before the formatted section and this different character
    after the formatted section. To post formatted text on this site, type these 6 characters
    before the formatted section, and the exact same 6 characters again after the formatted section.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • I got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this?

    i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get my information back?

    Every backup replaces the old one, so, unless you included the backup folder in your computer backup routine, you can't get back your calendar info.
    The only time iTunes will not replace a backup is, when you use it to restore from, this one will stay in the backup list in iTunes.
    More info on backups here: http://support.apple.com/kb/HT1766

  • How to create a matrix with constant values and multiply it with the output of adc

    How to create a matrix with constant values and multiply it with the output of adc 

    nitinkajay wrote:
    How to create a matrix with constant values and multiply it with the output of adc 
    Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How to filter certificate templates in Certificate Authority snap-in with the correct values

    How to filter certificate templates in Certificate Authority snap-in with the correct values
    I have a 2012 R2 server running Microsoft Certificate Authority snap-in.
    I want to do a filter on a specific Certificate Template which i know exists in the 'Issued Certificates' folder.
    All the documentation i can find seems to suggest i copy the certificate name and use this in the View Filter.
    1). I add the 'Certificate Template' option into the Field drop-down.
    2). I leave the Operation as the '=' symbol
    3). I paste in just the name of the template in question. for example: 'my computers'
    The search results always come back blank 'There are no items to show in this view.' even when i know there are many instances of this template. I've tried on a win 2008 server and same issue.
    Is there a correct value to enter for the Certificate Template name?
    Can this be done easier using certutil commands?
    When i run the certutil tool i can confirm i have several issued templates. Certutil -catemplates -v > c:\mytemplate_log.csv
    Anybody know what i'm doing wrong?
    I seem to be getting nowhere with this one.

    > But its important you are using the template name, not the display name
    this is incorrect. OIDs are mapped to *display name*, not common name (it is true for all templates except Machine template). That is, in order to translate template name to a corresponding OID, you need to use certificate template's display name. And, IIRC,
    template name in the filter can be used only for V1 templates. For V2 and higher, OID must be used.
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • How to display current postion and previous position in the same row?

    I need to produce a promotions/transfer report that gives the employee's current position as well as his/her previous position in the same row.
    for example:
    Employee current position current organization current company previous postion previous organization previous company
    Jane Smith Executive PA ZYX ltd Harmony personal assistant ABC ltd Yahoo
    I am using the per_all_people_f, per_all_assignments_f, per_periods_of_service, hr.all_organization_units, per_all_positions tables
    Somehow i cannot manage to display the previous position. I can only get so far to display the current postions
    Any ideas? here is the full code
    --this query gives current info
    select ppf.employee_number, ppf.full_name
    , (DECODE (ppf.sex, 'M', 'Male', 'F', 'Female') ) gender
    , (DECODE (ppf.per_information4
    ,'01', 'Indian'
    ,'02', 'African'
    ,'03', 'Coloured'
    ,'04', 'White') ) race
    , ppf.ORIGINAL_DATE_OF_HIRE
    , paf.EFFECTIVE_START_DATE current_postion_start_date
    , RTRIM (SUBSTR (hpt.NAME, 1, INSTR (hpt.NAME, ';') ),';')Current_Position
    , ho.name Current_Organization
    , xx_return_structures.xx_return_company_name
    (paf.person_id,
    paf.effective_start_date
    ) current_company
    from per_all_assignments_f paf,
    hr_all_positions_f_tl hpt,
    hr_all_organization_units_tl ho,
    per_all_people_f ppf
    --where paf.person_id = 16170
    and paf.POSITION_ID=hpt.POSITION_ID
    and paf.ASSIGNMENT_NUMBER is not null
    and ho.organization_id = paf.organization_id
    and ppf.person_id=paf.person_id
    and paf.EFFECTIVE_START_DATE between ppf.EFFECTIVE_START_DATE and ppf.EFFECTIVE_END_DATE
    order by paf.EFFECTIVE_START_DATE
    --this query gives previous position, organization and company
    select ass.EFFECTIVE_START_DATE
    , RTRIM (SUBSTR (hpt.NAME, 1, INSTR (hpt.NAME, ';') ),';')Previous_Position
    , ho.NAME previous_organization
    , xx_return_structures.xx_return_company_name
    (paf.person_id,
    paf.effective_start_date
    ) previous_company
    from per_all_assignments_f paf, hr_all_positions_f_tl hpt, hr_all_organization_units_tl ho
    where paf.person_id = 16170
    and paf.EFFECTIVE_START_DATE not in (select max(paf.EFFECTIVE_START_DATE)
    f rom per_all_assignments_f paf
    where ass.person_id = 16170)
    and paf.PRIMARY_FLAG ='Y'
    and paf.POSITION_ID=hpt.POSITION_ID
    and paf.ORGANIZATION_ID=ho.ORGANIZATION_ID

    Ok so here is my problem. The current position display 3 times. The rest is correct. it only display once. Any ideas on how to get rid of the 2 extra rows that is being displayed with the current position?? I only need the current position to display once with the previous position info.
    select distinct pvs.person_id,
    peo.EMPLOYEE_NUMBER empno,
    peo.FULL_NAME,
    (DECODE (peo.sex, 'M', 'Male', 'F', 'Female') ) gender,
    (DECODE (peo.per_information4
    ,'01', 'Indian'
    ,'02', 'African'
    ,'03', 'Coloured'
    ,'04', 'White') ) race,
    peo.ORIGINAL_DATE_OF_HIRE,
    pvs.EFFECTIVE_START_DATE curr_start_date,
    RTRIM (SUBSTR (pvs.job, 1, INSTR (pvs.job, ';') ) ,';') current_position,
    pvs.ORGANIZATION current_organization,
    substr(pvs.PAYROLL,5)current_company,
    a1.previous_position,
    a1.previous_organisation,
    a1.previous_company
    from per_periods_of_work_v pv,
    per_assignments_v2 pvs,
    per_all_people_f peo,(select distinct RTRIM (SUBSTR (pvs.job, 1, INSTR (pvs.job, ';') ) ,';') previous_position,
    pvs.ORGANIZATION previous_organisation,
    substr(pvs.PAYROLL,5)previous_company,
    pvs.job_id job_id,
    pvs.organization_id,
    pvs.position_id,
    pvs.location_id,
    pvs.PERSON_ID,
    pvs.PEOPLE_GROUP_ID,
    pvs.EFFECTIVE_END_DATE,
    pvs.EFFECTIVE_START_DATE
    from per_assignments_v2 pvs
    where sysdate > pvs.EFFECTIVE_END_DATE
    and pvs.person_id=4723
    )a1
    where peo.person_id = pvs.person_id
    and pvs.person_id = pv.person_id
    and a1.person_id = pvs.person_id
    and pvs.EFFECTIVE_START_DATE between peo.EFFECTIVE_START_DATE and peo.EFFECTIVE_END_DATE
    and pvs.PEOPLE_GROUP_ID <> a1.people_group_id
    and pvs.JOB_ID <> a1.job_id
    and pvs.ORGANIZATION_ID <> a1.organization_id
    and pvs.position_id <> a1.position_id                     activating this elimnates 1-Feb-2008 info
    and pvs.effective_start_date -1 = a1.effective_end_date     activating this eliminates 1-feb-2008, 1-jul-2006, 1-april-1996 info
    and pv.person_id = 4723
    order by pvs.effective_start_date desc

  • How to display the contents of the database values which are retrived.

    how to display the contents of the database values which are retrived in servlets and i am able to display the contents in the servlets and if forward to jsp using requestdespatcher,the values are to be shown in jsp one below the other.please suggest me in these........the servlet code is as shown
    while(rs.next()){
                        buffer.append(rs.getString(1));
                        buffer.append(rs.getString(2));
                        buffer.append(rs.getString(3));
                        buffer.append(rs.getString(4));
                        buffer.append(rs.getString(5));
                        buffer.append(rs.getString(6));
                        buffer.append(rs.getString(7));
                        buffer.append(rs.getString(8));
                        buffer.append(rs.getString(9));
                        buffer.append(rs.getString(10));
                        request.setAttribute("result1",buffer);
                        RequestDispatcher rq=request.getRequestDispatcher("/results.jsp");
                        rq.forward(request,response);
    in jsp iam using the getAttribute to retrieve the values as shown
    <% StringBuffer sb=(StringBuffer)request.getAttribute("result1"); %>
    <%= sb %>
    but getting the results in the stretch,i need to display the result one below the other.

    if you load it all into the buffer that is going to be very difficult. I would suggest loading it into some sort of collection. I like using an ArrayList.
    Then pass the arraylist.
    you will then on the jsp iterate through the arrayList using what every you want.. el, logic tags, scriplets.
    so something like
    ArrayList arrayList = new ArrayList();
    while(rs.next()){
    arrayList.append(rs.getString(1));
    //or possibly an arrayList of String arrays
    //maybe using nested for loops.  Inner for loop adds result to string[] then //outer adds string[] to arrayList.
    //can be done any number of ways based on your expected result set.

  • How to find bpel instance in 11g based on the index values

    We have 10g BPEL process where we define 4 index values for all the instances. Whenever support request comes, we ask index values and based on that we search the process instance.
    We have migrated this 10g bpel process to 11g now. How to find bpel instance in 11g based on the index values ???

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How to refresh bean value in advanced table from vo/database value in PR.

    Hi,
    I have requirement in which I have two OAF pages. First is the base page and second is popup page. Base page displays some values in table with messagetextinput. When user clicks button on the base page it is calling popup page. Now user changes value (Messagetextinout) in popup page and submits the popup page (which also closes popup page). Submit request in popup page does some calculation and also changes value of base page VO. But when control goes back to the base page, base page messagetestinput bean does not get changed even though VO is changed by submit request in popup page.
    Note: Popup page is closed using java script with following code.
    window.opener.submitForm('DefaultFormName'); // Submits base page to refresh the values in base page
    window.close(); // Closes popup page

    Thanks for the prompt reply.
    On base page, in advance table I am having a column called Value, it is either text field or LOV item based on the value of a list item called field type located in same advanced table, if value of the field type is FIELD we are displaying LOV else we are displaying text box. User can enter 4000 characters long value in Value column when field type value is not FIELD. Length of the Value text box in advanced table is limited so we have provided a link so that user can open the modal dialog box with the default value as base page's value column's value.
    We have set the destination URI property of the link on base page to open modal dialog box:
    javascript:var a = window.open('OA.jsp?page=/cummins/oracle/apps/perc/perc4681/g2config/webui/perc4681ValueModalDialogPG&retainAM=Y&pDetailSeqNo={@G2DetailSeqNo}','a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    We have developed a page for modal dialog box, on PR of this page we are calling following method of AM to populate the default value.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable[] params;
    params = new Serializable[] {pageContext.getParameter("pDetailSeqNo")};
    OAMessageTextInputBean value = (OAMessageTextInputBean) webBean.findChildRecursive("value");
    value.setValue(pageContext,(String)am.invokeMethod("getPopupValue",params));
    public String getPopupValue(String pSeqNumber)
    Perc4681G2DetailVOImpl vo1 = getPerc4681G2DetailVO1();
    Row[] r1 = vo1.getFilteredRows("G2DetailSeqNo",pSeqNumber);
    vo1.setCurrentRow(r1[0]);
    Perc4681G2DetailVORowImpl row = (Perc4681G2DetailVORowImpl) vo1.getCurrentRow();
    return (String)row.getAttribute("Value");
    On modal dialog box we have a button (it is not submit button) called done, we have set destination uri property of the button as below:
    javascript:opener.submitForm('DefaultFormName',1,{'XXX':'abc','Value':document.getElementById('value').value});window.close();
    we are sending the value entered in dialog box as parameter to base page.
    We have called below procedure of AM on PR of base page
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    Serializable[] params;
    OAPageLayoutBean oapagelayoutbean = pageContext.getPageLayoutBean();
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (!pageContext.isBackNavigationFired(false))
    some code
    else
    if((("abc").equals(pageContext.getParameter("XXX"))))
    String pop_up_attr_value= pageContext.getParameter("Value");
    params = new Serializable[] {pop_up_attr_value};
    am.invokeMethod("setPopupValue",params);
    enableDisable(webBean, pageContext);
    else if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "G2DetailCreateTxn", true))
    OADialogPage dialogPage = new OADialogPage(STATE_LOSS_ERROR);
    pageContext.redirectToDialogPage(dialogPage);
    else if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "G2DetailUpdateTxn", true))
    OADialogPage dialogPage = new OADialogPage(STATE_LOSS_ERROR);
    pageContext.redirectToDialogPage(dialogPage);
    public void setPopupValue(String pVal)
    Perc4681G2DetailVOImpl vo1 = getPerc4681G2DetailVO1();
    Perc4681G2DetailVORowImpl row = (Perc4681G2DetailVORowImpl) vo1.getCurrentRow();
    row.setAttribute("Value",pVal);
    Everything mentioned above is working as expected whereas I am not able to see the value ented in modal dialog window in value column of base page.
    Value is getting set in VO but it is not getting reflected in page.
    Could you please let me know where I am going wrong.
    Thanks in advance.

  • How can I get "IMAQ Line Fit" stable (with the same points)

    How can I get "IMAQ Line Fit" stable (with the same points)
    I my vision applications I use a lot off times "IMAQ Line Fit"
    some times the results are not Stable.
    See vi and word document attached.
    When I take the same points but in a other order (sort)
    then suddenly all points are used.
    In this case I was looking for a edge in vertical direction (Y).
    I found the points but "IMAQ Line Fit" did not function well.
    I tried changing all settings like pixel radius and minimum score and
    also threshold and so on. But no result.
    Then I sorted the points reversed and that worked. See vi.
    I use labview Labview 8.6.0 and IMAQ machine vision.
    Maybe this problem is solved in a newer version.
    Please let me know.
    Thanks
    Attachments:
    TEST-imaq-line-fit-86.vi ‏169 KB
    IMAQ-Fit-Line-Problem-86.doc ‏230 KB

    Thank You for your reaction Hossein,
    This "one application" uses "Line fit" about 20 000 000 times a day.
    about 200 will go wrong. With your setting the the "Line fit" for this occasion will work but others will go wrong.
    A algorithm should be:
    1e Stable, when using the same points and settings the result MUST be the same. How the points are sorted should not matter.
    2e Accuracy
    3e Speed
    4e Testing. Is very difficult but al least close points and the same points and sorting ... should be done
    NI now as made a " IMAQ Line Fit" Problem CAR (Corrective Action request) 298016.
    so in the future there will be a update.
    In the mean while a made a line fit which uses Bisquare option from Linear Fit.vi :
      from C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\analysis\6fits.llb
    This is a temporary fix because "IMAQ Fit Line VI" is not so stable.
    Because outliers should be rejected only Bisquare does this reasonable.
    This program does NOT USE "Minimum Score" and "Pixel Radius"
    Valid fit = When there are enough points within Outlier_Distance.
    Algorithm steps:
    - Determine if line is more horizontal then vertical, Compare DeltaX with DeltaY
    - If DeltaX <= DeltaY then SWAP X Y and later Swap back
    - Sort Points at on X value
    - First : Bisquare Linear Fit
    - Calculate distances to the found line for all points
    - Inliers: Points within Outlier_distance
    - Outliers: Points outside Outlier_Distance
    - Only use Inlier Points
    - Check again if DeltaX < DeltaY then SWAP X Y later SWAP back again
    - Second : Bisquare Linear Fit only with the Inlier Points
    - Results are from the second fit
    Warning : This Program is Not so accurate and Not so fast
    See attachments it is in labview 8.6
    If some has a improvement please let me know.
    Thanks
    Attachments:
    svi_fit_line_Bsquare_and_draw.vi ‏18 KB
    Fit_Line_Bisquare_Linear.vi ‏40 KB

  • How does works default parameters in a program with logical database PNP?

    Hi Friends,
      I have a basic program, i need to filter info with period parameters in a program that uses logical database PNP, but it doesn't work.
      If i use "person selection period" that it's suposed to filter info according to infotype 0001 (as the sap help says), it doesn't work, i use: PNPBEGPS = today and PNPENDPS = today, and the result it's a lot of registers that doesn't meet that criteria.
      Also i tried with: data selection period, today, up to day, current month. And the result it's with the same problem.
      How does works period parameters in a program with logical database PNP?
    This it's the program example, i use the default category.
    REPORT  ZRPHRTEST.
    tables: pernr.
    infotypes: 0001.
    start-of-selection.
    get pernr.
      write: pernr-pernr, p0001-begda, p0001-endda.
    end-of-selection.
    write 'fin'.

    Hi,
    Define pernr table under tables statement then and use GET PERNR event.This get event is followed by End-Of-Selection.
    Syntax: Tables pernr.
                Get pernr.
    Try, activate and test. This should solve your problem.
    Regards,
    Abhijeet

  • How to insert some strings in a query with the clausule 'in' in a procedure

    Hello fellows.
    Do you know how to insert some strings in a query with the clausule 'in' in a procedure (with a variable)?.
    I tell us my problem with an example:
    I want to use this select but introducing a variable instead the 'value1', 'value2':
    select * from table1 where field1 in ('value1', 'value2');
    if I declare the variable var1 as:
    TC_VAR1 CONSTANT VARCHAR2(50) := '''value1'',''value2'''
    and I use it as:
    select * from table1 where field1 in (TC_VAR1);
    It doesn't work because Oracle takes TC_VAR1 as an all string. I think Oracle takes it as this:
    select * from table1 where field1 in ('value1, value2');
    If I use the data type TABLE, I don't know how to use well:
    TYPE varchar2_table IS TABLE OF VARCHAR2(10);
    tb_var varchar2_table;
    select * from table1 where field1 in (tb_var);->It returns an error and there ins't an method that it returns all values.
    A curious case is that if I have a sql script (for example script1.sh) with this query:
    select * fromt able1 where field1 in (&1)
    and I invoke this script as
    script1.sh "'''value1'',''value2'''". It works
    Can anybody helps me?.
    Thanks.

    Thanks to all. Really.
    First, sorry for my English. It's horrible. Thank to all for understand it (my English).
    I've resolved my problem with these links:
    ORA-22905: cannot access rows from a non-nested table item
    and
    http://stackoverflow.com/questions/896356/oracle-error-ora-22905-cannot-access-rows-from-a-non-nested-table-item
    At last, I have used someting like this:
    DECLARE
    number_table_tmp NUM_ARRAY:=NUM_ARRAY(410673, 414303, 414454, 413977, 414042, 414115, 413972, 414104, 414062);
    BEGIN
    FOR c1 IN (SELECT par_id, 1 acc_vdo_id FROM SIG_VIS_CAM
    WHERE par_id IN (SELECT * FROM TABLE(number_table_tmp))
    UNION ALL
    SELECT par_id, 2 acc_vdo_id FROM SIG_ACCAO a
    WHERE par_id IN (SELECT * FROM TABLE(number_table_tmp))) LOOP
    NULL;
    END LOOP;
    END;
    but first I had to create the type NUM_ARRAY like this:
    CREATE TYPE subjectid_tab AS TABLE OF NUMBER INDEX BY binary_integer;
    THANK YOU, GUYS. YOU ARE THE BESTS. ;-)
    Edited by: user12249099 on 08-sep-2011 7:37
    Edited by: user12249099 on 08-sep-2011 7:37

Maybe you are looking for

  • What's the significance of "_unloaded" appended to plug-in name in crash data?

    Hi I'm investigating some BEX (Buffer Overflow Exception) crashes. I can see from event log crash details that a plug-in for adobe appears to be the faulting module (P4) This is happening within Acrobat.exe and iexplore.exe e.g. Event Name: BEX Probl

  • No picture in picture

    I do not receive picture in picture ....only picture of contact.     New Logitech c170 camera recently installed.  Doubt it is the problem though....

  • Unattended/silent install "oracle outlook email integration on demand"

    I am looking for how to create sms package for "oracle outlook email integration on demand" (unattended/silent/ install from command line setup.exe /s /v"/qb"????? no luck

  • ABAP query output

    hi all Is it possible to give a page break in ABAP query output. I want my new order number to be printed on a new page. Any pointers will be appreciated. Thanks.

  • Adobe Error- when trying to display the form in english login

    Hi, I have made few changes in the adobe form in italian login (since that was its original language) it is working fine in italian login while generating an error in  english login.The error is shown below- "ADS: Request start time: Tue Sep 15 06:37