HWC SUP 2.1.3  Dynamic Conditional Navigation Issue

Hello Experts
I have a language flag as 'FR' or 'EN' which is coming dynamically based on user.
Based on the above flag,I want to Navigate the screen .
If FR ,The screen should come in French language.
If EN,The screen should come in English language.
Thank you so much.

Thank you so much for your reply.
I was also trying but I am not getting the solution.
Thanks

Similar Messages

  • How to display the rows in a color for specific dynamic condition.

    Hi,
    I am new to OAF. I created a custom Search Page.My requirement is we need to display a color for specific dynamic condition. Could any one help me how to do this?
    Thanks in Advance
    Sruthi.

    Hi,
    Sruthi wrote:
    I am new to OAF. I created a custom Search Page.My requirement is we need to display a color for specific dynamic condition. Could any one help me how to do this?------I think we can display colours at coloumns level only,nt at row levevl.
    ------use CSSStyle to set the colour, via webBean.
    Co-ProcessRequest:*
    import oracle.cabo.style.CSSStyle;
    CSSStyle oraaniltext = new CSSStyle();
    oraaniltext.setProperty("color", "#F6358A");
    oraaniltext.setProperty("background-color", "#000000");
    OAMessageTextInputBean comCode = (OAMessageTextInputBean)webBean.findChildRecursive("InvoiceIdTI");
    comCode.setInlineStyle(oraaniltext);
    http://www.computerhope.com/htmcolor.htm
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 25, 2010 9:46 PM

  • Language Conversion issue of HWC SUP APP

    Hello Experts
    Can any one have idea for conversion the hwc sup App from English to other language(French) which was built in SUP2.1.3?
    Thanks in advanced for your suggestion.
    Thanks
    Anil

    Have you restarted the application or device after you changed the device language to French?  The HWC will pick up the current language when it is started.  If you change the device language when the application is already launched, it is not going to pick it up until the next time it is restarted.
    The current device language is passed into your application on the query string with the lang parameter.  You can display the value of this parameter in an alert to double check the app has the language that you think should be displayed. 
    URL Parameters
    Then make sure your localized application has a Locale Properties file that matches what the device is showing for lang.
    Localizing a Hybrid App Package
    Thanks,
    Andrew.

  • How to read an interal table with dynamic conditions

    Dear all,
       I have an internal table IN_TAB and I want to read a record of the table with dynamic condition as below.
    a) IN_TAB  structure : |      ColA     |      Col B     | Col C        | Col D        |
    b) Requirement: there are four condtions, and reading data from IN_TAB (not use loop) based on these conditions. If one condition is empty, it'll be ommited.
    Ex: |      ColA     |      Col B     |    Col C      |    ColD      |
    x1
    b
    c
    d
    x1
    x2
    x3
    x1
    x2
    x3
    x4
    y1
    y2
    y3
    y4
    The conditons consist of ColA = ' x1' , ColB = 'x2' , ColC = '', ColD = ''
    The result will be:
    x1
    x2
    x3
    x1
    x2
    x3
    x4
    Could you please help to solve this problem.
    Thanks and regards,
    Nguyen Huy.

    Hi Nabheet,
      Thanks for your solution, It solved my problem. I also suggest the another way to obtain this.
    - The internal table have to declare with header line, note that the internal table mustn't has x type in the structure.
    - Assign all conditions into header line wether condtion is empty or not.
    - Use statement READ TABLE IN_TAB.
    Ex:
       DATA: BEGIN OF RT OCCURS 0,
            MATNR(18) TYPE C,
            ERNAM(12) TYPE C,
            BISMT(18) TYPE C,
            LAEDA TYPE MARA-LAEDA,
          END OF RT .
    SELECT
      MATNR
      ERNAM
      BISMT
      LAEDA
      UP TO 10 ROWS
      INTO CORRESPONDING FIELDS OF TABLE RT
      FROM MARA.
    RT-MATNR = '7F01113'.
    RT-LAEDA = '20111005'.
    READ TABLE RT.
    @ponvignesh : thanks for your reply, I thinks that the Nabheet's solution is the good way.
    Kindly regards,
    Nguyen Huy

  • OBIEE Condition Navigation

    Dear Experts,
    How to implement conditional navigation in OBIEE.
    I have one report. When i click on amount when this report other column.value ='A', it should navigate to the report with 'A Report';
    Another when this column.value = 'B', it should navigate to another report such as 'B Report'.
    Thanks a lot.

    Hi
    you can achieve this type of navigation by using GoNav which will pick up the value of the click where you will click. You have to use @ to pick value of the column. Only limitation is that you have to name the target report exactly same as the value of the source column. If coulmn value 'A' then you have to name your report A.
    you can have an idea of implementing GoNav by going through this link
    http://download.oracle.com/docs/cd/E12096_01/books/AnyWebAdm/AnyWebAdm_APIWebIntegrate6.html
    award points if found helpful.

  • *** How to add dynamic condition to Query ***

    Hi All,
    Could you please help me out logic
    i need only query
    There is tables emp, dept
    SELECT E.ENAME,D.DNAME
    FROM EMP E, DEPT D
    WHERE d.DEPTNO = e.DEPTNO(+)
    AND (DYNAMIC CONDITION)
    DYNAMIC CONDITION LOGIC IS
    IF D.DEPTNO IS THERE IN E.DEPTNO THEN [E.JOB = 'MANAGER'] --- CONDITIION SHOULD ADD IN THE PLACE OF (DYNAMIC CONDITION)
    IF D.DEPTNO IS NOT THERE IN E.DEPTNO THEN [ D.LOC = 'LONDON'] --- CONDITIION SHOULD ADD IN THE PLACE OF (DYNAMIC CONDITION)
    I tried below
    select e.ENAME, e.SAL, d.dname from emp e, dept d
    where CASE WHEN e.deptno = d.deptno then e.job = 'MANAGER'
    else D.loc = 'LONDON'
    END
    But its giving error...
    Please give a solution
    Thanks in Advance
    KC

    SELECT E.ENAME,D.DNAME, d.loc, e.job, e.deptno
    FROM EMP E, DEPT D
    WHERE d.DEPTNO = e.DEPTNO(+)
    and (
           (e.deptno is null and d.loc='LONDON')
             or
           (e.deptno is not null and e.job='MANAGER')
         );  (But thats no dynamic sql!)

  • About Dynamic Conditions

    hello,
    if i want to use Dynamic Conditions in select,how can i do? Dynamic Conditions 'where'.

    Hi,
         TABLES: VBAK.
    SELECT-OPTIONS S_VBELN FOR VBAK-VBELN.
    DATA: lV_STR1(20) TYPE C VALUE 'VBELN IN S_VBELN.'.
    DATA: GI_WHERE(72) OCCURS 0 WITH HEADER LINE.
          GI_WHERE = LV_STR1.
           APPEND GI_WHERE.
    DATA GI_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.
    SELECT VBELN
    INTO TABLE GI_VBAK
    FROM VBAK
    WHERE (gi_where).
    Regards
    amole

  • PO Condition Type Issue

    Hi All,
    I have encounter a PO condition type issue, hope to get someone to enlighten me.
    I have create both cuztomize condition type ZOT2 AND ZOT3. 
    With config in Control data 1
    Cond. Class - A Discount or Surcharge
    Calculat. type - B Fixed Amount
    Cond. category - B Delivery cost
    Group Condition
    Select for Group cond. & RoundDiffComp
    GrpCond.routine - 1 Overall Document
    ZOT2 in header condition should be divided into item via value.
    ZOT3 in header condition should be divided into item via quantity.
    Both condition type havemanually enter with value 300
    In the test PO I have created 3 materials:-
    Material     Quantity     Net Price     Item Net
    A     100     1,615.00     161,500.00
    B     100          16.15         1,615.00
    C     1000          16.15       16,150.00
    In the Item view calculation for both condition type as stated below:-
    ZOT2 - 270.27 : 2.70 : 27.03 (Ratios base on Value 100:1:10)
    ZOT3 - 270.27 : 2.70 : 27.03 (Rations base on Quantity 1:1:10) the amount result should be 25: 25: 250 but the result I get from the system for condition type ZOT3 is the same as ZOT2.
    Please advise how to reticfy the configuration. Thank you.

    Eugenia Foong Pui Mun wrote:
    Hi Shiva,
    >
    > I have try to config with the info you have suggested, but it does not seem to get the expected result.
    Hi Eugenia...
    I tested  scenario with values you have mentioned. It works perfect both ways. Pls follow this....
    1. Pls avert the changes I had suggested in my prev reply for changing the condition types. (group condition active, round diff condition & group cond routine, keep them as they are)
    2. While you enter value in header with condition type ZOT2. the value gets properly distribute by the ratio 100:1:10 and thats perfect......Now
    3. While you enter the values for condition type ZOT3 in the header...Pls note that your Total Qty is 1200 and the total condition value is 300 this means per unit qty the value is 300/1200 =0.25...
    Now while you enter the values for ZOT3 in the header, enter 300 in the Amount column and 1200 in the Per column, meaning that the total of 300 shoud be divided into 1200 units irrespective of quantities per Line Item
    Now check the results and you will have the distribution ratio 1:1:100
    NB:For ZOT3 (Qty base) to work the UoM for all the line items must be similar
    Pls check and revert
    Regards
    Shiva
    Edited by: Shivaspatil on Nov 24, 2011 12:42 PM

  • SP navigation issue -Error in sp2013

    Hi,
           I am facing sp navigation issue in my production server frequently. I am using Sharepoint RTM version . how can i resolve this one . I tried all solutions in the google , as of now, no hope.
    Your help highly appreciated
    Thanks,
    Bala

    Hi Bala,
    According to your description, my understanding is that you got an error when you used navigation in SharePoint 2013.
    Please install April CU 2013 for SharePoint 2013, compare the result.
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;2726992
    More information, please refer to the link:
    http://venkychilukuri.wordpress.com/2013/07/02/an-unexpected-error-occurred-while-manipulating-the-navigational-structure-of-this-web/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Strange Navigation Issues After Using Pop-up Menu

    I have a Blu-ray project I'm working on.  It's 1920x1080 resolution. 
    I have a main menu and then seven sub-menus as chapter-selection menus for three different videos.
    The Main Menu has four buttons.  Button one is a highlights video, button two takes the user to the first of three chapter-selection menus for the first video.  Button three takes the user to the first of two chapter-selection menus for the second video and button four takes the user to the first of two chapter-selection menus for the third video.  I have transitions from the main menu to each of the three chapter-selection menus and back from any of the seven chapter-selection menus to the main menu.
    I also have a pop-up menu with the same four buttons on it as the main menu, except that the top button takes you to the main menu rather than playing the highlights video.
    The problem I have is that all of the navagition works fine when moving around the menus, unless you open the pop-up menu during a video and navigate to one of the chapter-selection menus.  When you do this, it works.  It goes to the first page of the chapter-selection menu for any of the three videos, but if you then go to the main menu from there (each chapter-selection menu has a "back to main menu" button on it), it will play the transition, but then jump you to one of the chapter-selection menus for the video who's chapter-selection menu you were just on.
    For example:  If I play the highlights video and while it's playing I open the pop-up menu and choose Video 3, it will take me to the first chapter-selection menu for Video 3.  If, once that menu comes up, I then scroll down to the "Back to Main Menu" button on that page and choose it, the transition from that menu to the Main Menu will play, but after it finishes, the Blu-ray will jump to the last chapter-selection menu page for Video 3.  If I then navigate back to menu page 1 of the chapter-selection menus for Video 3 and choose the exact same "Back to Main Menu" button, the transition will play again and this time the Main Menu will open up.
    The links for all of the menu buttons are correct, I've check them numerous times.  It just seems that they get screwed up after you've navigated somewhere from the pop-up menu.
    Sorry this is so long, but I wanted to try to explain it as best as possible.
    Any suggestions?
    Thanks.

    Hey Shark.  I read your explanation of what's happening, but I am not sure why you are having that weird navigation issue.  There are a lot of weird anomalies that happen with Encore authored blu-rays, and things that just don't work that really should.  For the price, it does the job, but there are limitations.
    Last year when I started using it for blu-ray authoring, there were non-stop road blocks and things to overcome.
    Check out the documented misery.  It gets better at the end  .
    http://forums.adobe.com/message/3446748#3446748

  • 2.1.2 update does not fix DVD Navigation issues :(

    The FrontRow 2.1.2 update still doesn't fix the DVD navigation issues where sub menus on MANY DVDs are not navigable. Using the up / down keys on the keyboard or remote causes the Volume to change and not navigating the menus like it is supposed to.
    This is a severe issue as it makes it impossible to play some DVDs or turn on the subtitles.

    Yeah, I have experienced this as well. Ridiculous -- how could this issue not have come up in product testing by the time the software has reached version 2.0? The solution on Apple's end should be obvious. All 4 directional buttons must act only as directional commands when using a DVD, and all other functions (such as volume) can only be accessible by hitting MENU first to bring up a list of other options.
    I'm all for simplicity, but this is the fault of the boneheaded 6-button Apple Remote. It requires their software to overload buttons with different commands depending on context, which is clearly an unacceptable limitation. They'll have to break down and roll out a proper remote with more discrete buttons one of these days and come to terms with the fact that shoehorning everything onto 6 buttons is not an elegant solution.

  • Navigation Issue on HC 91, Tools 8.51, SQL Server 2008 on Windows 2008

    Hi Guys,
    I installed HCM 91 -Tools 851-SQL Server 2008 on Windows 2008 server. App server running perfectly, initiated web server fine.
    When I login in n-tier/web via PS userid, navigation to Panels are fine but when I try to click on any page, it gives error IE exception at the bottom – “Error on the page”, page does nothing, no searches and does not display the page.
    I tried installation from ground zero the 3rd time last night, followed all the steps and stuck at this point.
    I am wondering if anyone has encountered these issues.
    I appreciate any pointers.
    Thanks in advance.
    Cheers
    -Vinay

    Same question, same answer :
    http://peoplesoft.ittoolbox.com/groups/technical-functional/peopletools-l/navigation-issue-on-hc-91-tools-851-sql-server-2008-on-windows-2008-server-3837147
    Nicolas.

  • How to evaluate the dynamic condition string in PL/SQL ?

    Hello, I am solving the issue of checking and validating the event table.
    For Example, the event table namely "Contract_validated" contains some atts about a contract as follow:
    CONTRACT_VALIDATED (SEQ_ID, CO_ID, VALID_T, CHANGE_KEY, ATT1, ATT1_FROM, ATT2, ATT2_FROM, REASON, CHANGE_KEY_ORIG, ATT1_ORIG, ATT2_ORIG)
    In this table, the pairs (ATT1 and ATT1_FROM), (ATT2 and ATT2_FROM) must be compared to check whether the values are changed or not in the update event (change_key = U). If some records have change_key = U but the values does not change, I need to protocol and correct such records.
    The table name and attributes list could be dynamic, and will be provided as parameters. Therefore, I use Dynamic PL/SQL to generate the code to test the conditions between the values between the pairs columns for detecting the invalid event. However, I am stucking in testing the condition phrases because I can not evaluate the condition string in the SELECT statement. I can not use IF because parts of this condition string take the value from a record and collection type. Anyone has the idea how to evaluate the condition in such case, please give me instructions or recommendations (it could be other alternatives to solve the problems)
    Here is the code which generated from my Dynamic PL/SQL string, however, Oracle raise exception error at the EXECUTE IMMEDIATE v_sql command
    SELECT 'x' FROM DUAL WHERE (NVL(v_rec.ATT1, NULL) <> NVL(v_rec.ATT1_FROM , NULL) OR (NVL(v_rec.ATT2, NULL) <> NVL(v_rec.ATT2_FROM , NULL))
    E-0008: Unkown Exception raised in Loop. ORACLE:ORA-00904: "V_REC"."ATT2_FROM": invalid identifier
    vo_traced_list has type Table of VARCHAR2(2000), storing the atts list of table (CONTRACT_VALIDATED), it has value already from other procedure invocation.
    Here is the dynmic PL/SQL code generated dynamically depends on the table name, and attr list:
    DECLARE v_rec CONTRACT_VALIDATED%ROWTYPE;
    TYPE cv_type IS REF CURSOR;
    v_rec_cv CV_TYPE;
    v_cond VARCHAR2(4000);
    cond BOOLEAN := FALSE;
    v_exec VARCHAR2(1000);
    v_default VARCHAR2(10):= 'NULL';
    tk_val CONTRACT_VALIDATED.VALID_T%TYPE;
    pk_val CONTRACT_VALIDATED.CO_ID%TYPE;
    v_cnt NUMBER;
    BEGIN
    OPEN v_rec_cv FOR SELECT /*+ parallel(x,4) */ x.* FROM CONTRACT_VALIDATED x WHERE CHANGE_KEY = 'U' ORDER BY VALID_T;
    FETCH v_rec_cv INTO v_rec;
    IF v_rec_cv%NOTFOUND THEN
    Add_Log('Event_Validating',v_user,v_event_validated,'INFO','I-0001: No-Procession needed');
    ELSE
    BEGIN
    LOOP
    pk_val := v_rec.co_id;
    tk_val := v_rec.valid_t;
    v_cnt := vo_traced_atts_list.COUNT;
    v_cond := '(NVL(v_rec.'|| vo_traced_atts_list(1)||', ' || v_default || ') <> NVL(v_rec.' || vo_traced_atts_list(1)||'_FROM'
    ||' , ' || v_default || '))';
    cond := (BOOLEAN) v_cond;
    FOR v_i IN 2..v_cnt LOOP
    BEGIN
    v_cond := v_cond ||CHR(13)||CHR(10)||'OR (NVL(v_rec.'||vo_traced_atts_list(v_i)||', ' || v_default || ') <> NVL(v_rec.'||vo_traced_atts_list(v_i)||'_FROM'
    ||' , ' || v_default || '))';
    END;
    END LOOP;
    v_exec := 'SELECT ''x'' FROM DUAL WHERE '||v_cond;
    Add_Log('Event_Validating',v_user,v_event_validated,'INFO',v_exec);
    EXECUTE IMMEDIATE v_exec;
    /* Exception raised from here
    E-0008: Unkown Exception raised in Loop. ORACLE:ORA-00904: "V_REC"."ATT2_FROM": invalid identifier
    It seems that Oracle does not understand the dynamic reference v_rec.ATT2_FROM, v_rec.ATT2,... to test the condtion
    IF SQL%ROWCOUNT = 0     THEN -- condition is false ==> traced attributes does not changed
    -- update the REASON = 4 - not interested event
    v_exec := 'UPDATE CONTRACT_VALIDATED SET REASON = 4 WHERE CO_ID = '||pk_val||' AND VALID_T = '||tk_val;
    EXECUTE IMMEDIATE v_exec;
    END IF;
    FETCH v_rec_cv INTO v_rec;
    EXIT WHEN v_rec_cv%NOTFOUND;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,v_event_validated,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    RAISE ge_raise_error;
    END;
    END IF;
    CLOSE v_rec_cv;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,v_event_validated,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    RAISE ge_raise_error;
    END;

    Dear Andrew,
    Thank you so much for your suggestions, however, I think it will be better to let me explain more about the situation.
    I am working at Data Warehousing and Analysis part. The event tables are provided by other applications such as Customer OTLP system, Sales Management, etc. We therefore just have the results stored in the event tables (which could be wrong or inconsistency) and no way to force them to be valid by constraints. Before further processing the events , their records should be checked and overridden if possible, and that is the point I am trying to solve now.
    The Event table names, their attributes list, data types, primary key, timestamp columns etc are dynamic and are provided via parameters. I would like to write a procedure which can check the invalid events (not only update, but also insert, delete), protocol them, and override them if possible before processing further. Because the table name, attribute lists, data type, etc are not known in advanced, to my best knowledge, the only choice is generating dynamic PL/SQL code although it could suck the performance. The code you have seen in my first question is the output from the follwoing procedure, where the i_att_list provides the atts list has been parsed from other procedure invocation, i_pk is the primary key, i_tk is the time key, i_table_name is the table name (which is Event_Validation in previous example). The stucking point I have met now is that I do not know how to test the condition to detect the different between column pairs (ATT1 and ATT1_FROM, ...). Using Select from dual is just a dummy select for testing the where condition which must be formed as a string by that way.
    Thank you very much for your answer and looking forward to seeing your further recommendations or suggestions.
    Regards,
    Tho.
    CREATE OR REPLACE PROCEDURE Update_Validation
    ( i_att_list enum_string, -- list of attributes
    i_pk IN VARCHAR2, -- primary key column
    i_tk IN VARCHAR2, -- time key column
    i_table_name IN VARCHAR2 -- table_name - the columns format be checked
    ) AUTHID Current_User IS
    TYPE LoopCurType           IS REF CURSOR;
    ln_parallel NUMBER := 4;
    ge_raise_error EXCEPTION;
    v_user VARCHAR2(100);
    v_sql VARCHAR2(4000);
    v_string VARCHAR2(4000);
    v_crlf VARCHAR2(2) := CHR(13)||CHR(10);
    BEGIN
    SELECT sys_context('USERENV','current_schema') INTO v_user FROM DUAL;
    v_sql:= 'SELECT /*+ parallel(x,'||ln_parallel||') */ x.* FROM ' ||i_table_name|| ' x '||
              'WHERE CHANGE_KEY = ''U'''||
    ' order by '||i_tk;
    v_string := 'DECLARE v_rec '||i_table_name||'%ROWTYPE;' ||v_crlf||
              ' TYPE cv_type IS REF CURSOR; ' ||v_crlf||
    ' v_rec_cv CV_TYPE; ' ||v_crlf||
              ' v_cond VARCHAR2(4000); ' ||v_crlf||
         ' v_exec VARCHAR2(100);' ||v_crlf||
              ' v_default VARCHAR2(10):= ''~~''; ' ||v_crlf||
    ' tk_val '||i_table_name||'.'||i_tk||'.%TYPE;'||v_crlf||
    ' pk_val '||i_table_name||'.'||i_pk||'.%TYPE;'||v_crlf||
              ' v_cnt NUMBER;' ||v_crlf||
              'BEGIN ' ||v_crlf||
                        'OPEN v_rec_cv FOR ' ||v_sql ||';' ||v_crlf||
                        'FETCH v_rec_cv INTO v_rec;' ||v_crlf||
                             ' IF v_rec_cv%NOTFOUND THEN ' ||v_crlf||
                                  'Add_Log(''Event_Validating'',v_user,i_table_name,''INFO'',''I-0001: No-Procession needed'');'||v_crlf||
                             ' ELSE ' ||v_crlf||
                                  ' BEGIN '||v_crlf||
                                  ' LOOP '||v_crlf||
                                  'pk_val := v_rec.'||i_pk||';'||v_crlf||
    'tk_val := v_rec.'||i_tk||';'||v_crlf||
    'v_cnt := i_att_list.COUNT;' ||v_crlf||
                                            'v_cond := ''NVL(v_rec.''|| i_att_list(1)||'', '' || v_default || '') <> NVL(v_rec.'' || i_att_list(1)||''_FROM'''||v_crlf||
                             '||'' , '' || v_default || '')'';'||v_crlf||
                                            'FOR v_i IN 2..v_cnt LOOP'||v_crlf||
                                                 'BEGIN'||v_crlf||
                                                 'v_cond := v_cond ||CHR(13)||CHR(10)||''OR NVL(v_rec.''||i_att_list(v_i)||''), <> NVL(v_rec.''||i_att_list(v_i)||''_FROM'''||v_crlf||
                                                 '||'' , '' || v_default || '')'';'||v_crlf||
                                                 'END;'||v_crlf||
                                            'END LOOP;'||v_crlf||
                                            'v_exec := ''SELECT ''x'' FROM DUAL WHERE ''||v_cond;'||v_crlf||
                                            'EXECUTE IMMEDIATE v_exec;'||v_crlf||
                                            'IF SQL%ROWCOUNT = 0     THEN -- condition is false ==> traced attributes does not changed'||v_crlf||
                                            '-- update the REASON = 4 - not interested event'||v_crlf||
                                            'UPDATE '||i_table_name||' SET REASON = 4 WHERE '||i_pk||' = '||v_tk||' AND '||i_tk||' = '||tk_val||';'||v_crlf||
                                            'END IF;'||v_crlf||
                                       'FETCH v_rec_cv INTO v_rec;' ||v_crlf||
                                       'EXIT WHEN v_rec_cv%NOTFOUND;'||v_crlf||
                        ' END LOOP;'||v_crlf||
                                  'EXCEPTION' ||v_crlf||
                             'WHEN OTHERS THEN'||v_crlf||
                        'Add_Log(''SCD_VALIDATION'',v_user,i_table_name,''ERROR'',''E-0008: Unkown Exception raised in Loop. ORACLE:''||SQLERRM);'||v_crlf||
                        'RAISE ge_raise_error;'||v_crlf||
                                  'END;'||v_crlf||
                                  'END IF;'|| v_crlf||
                        'Close v_rec_cv;'||v_crlf||
                        'EXCEPTION' ||v_crlf||
                   'WHEN OTHERS THEN'||v_crlf||
              'Add_Log(''SCD_VALIDATION'',v_user,i_table_name,''ERROR'',''E-0008: Unkown Exception raised in Loop. ORACLE:''||SQLERRM);'||v_crlf||
              'RAISE ge_raise_error;'||v_crlf||
                   'END;';               
         Add_Log('SCD_UPDATE_VALIDATION',v_user,i_table_name,'INFO','I-0006: Update Validation : '||v_string);     
         EXECUTE IMMEDIATE v_string;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,i_table_name,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    END Update_Validation;

  • Include dynamic conditions in the where clause

    Hi All,
    I have an requirement where i need to dynamically include the conditions in the where clause based on the bind variable.
    My condition is like this.
    SELECT f.scheduled_date, a.bld_id, a.room_id, a.cage_id, f.test_num
    FROM feeding_test_results f,
    v_onl_gf_anmls a
    WHERE f.sak_feeding_test_res > 5000000
    AND f.anml_id(+) = a.anml_id
    AND f.bld_id = 'A5'
    AND f.room_id > 0
    AND f.cage_id > '0'
    case when :check_value = 1 Then
    AND scheduled_date <= '16-Apr-2009'
    AND scheduled_date >= '06-Apr-2009'
    Else
    AND scheduled_date = '16-Apr-2009'
    End
    AND f.feeding_status <> 'X') f
    Kindly anyone help me how to acheive this.
    Thanks & Regards,
    P. Gayathri Devi

    michaels2 wrote:
    and scheduled_date <= case when :check_value = 1 then date '2009-04-16' end
    and scheduled_date >= case when :check_value = 1 then date '2009-04-06' end
    and scheduled_date = case when not :check_value = 1 then date '2009-04-16' end
    Hmmm, you may want some NVL's around those case statements such as..
           and scheduled_date <= NVL(case when :check_value = 1 then date '2009-04-16' end,scheduled_date)
           and scheduled_date >= NVL(case when :check_value = 1 then date '2009-04-06' end,scheduled_date)
           and scheduled_date = NVL(case when not :check_value = 1 then date '2009-04-16' end,,scheduled_date)or some such thing. Otherwise the comparisons with Null will just cause it all to fail.

  • Dynamic condition in UDO Matrix's Column

    Hi all,
    I have a user form with a matrix. The matrix's first column has a CFL linked to another UDO MasterData Code (lets call it UDOCode).
    And on this matrix, the same UDOCode cannot be chosen more then once.
    So, I've been trying to code a dynamic CFL that filters the UDOCode's already chosen in the Column.
    Based on this thread I've achived this code:
    Select Case pVal.ItemUID
                        Case "mtx_ACORDO" '// The Matrix
                            oConds = New SAPbouiCOM.Conditions
                            With oForm.DataSources.DBDataSources.Item("@ADAT_ACORDOS1") '// The Matrix's DBDataSource
                                If .Size = 1 Then
                                    oCond = oConds.Add
                                    oCond.Alias = "Code"
                                    oCond.Operation = BoConditionOperation.co_NOT_NULL
                                Else
                                    For i As Integer = 0 To .Size - 1
                                        oCond = oConds.Add()
                                        oCond.BracketOpenNum = 1
                                        oCond.Alias = "Code"
                                        oCond.Operation = BoConditionOperation.co_NOT_EQUAL
                                        oCond.CondVal = .GetValue("U_EspPrcCd", i)
                                        oCond.BracketCloseNum = 1
                                        If i > 0 And i < .Size - 1 Then
                                            oCond.Relationship = BoConditionRelationship.cr_OR
                                        End If
                                    Next
                                End If
                            End With
                    End Select
    If Not oConds Is Nothing Then oCFL.SetConditions(oConds)
    In the matrix's first row I have no problem. All the values are there. But on the second row, no values are display in the DataTable.
    If I change the conditions from .Size -1 to .Size - 2, I get the correct values on the first and second rows, but on the third, again, no values are being display in the DataTable...
    Can anyone help me?
    Regads,
    Vítor Vieira
    Edited by: Rui Pereira on Dec 23, 2008 4:17 PM

    Hi, Erwine Sukardy
    Maybe it will be helpful if you have a specific task.
    All of items on a Form have it's own DBDataSources.
    For example, to get a table name and field name, that are Datasources to the ItemCode field in a Matrix in a  Purchase Order document, you can use this code:
    SAPbouiCOM.Matrix        tblSNs;
    SAPbouiCOM.Column      oColumnItems;           
    tblSNs = (SAPbouiCOM.Matrix)oPurDNForm.Items.Item("38").Specific;
    oColumnItems = (SAPbouiCOM.Column)tblSNs.Columns.Item("1");
    string tableName = oColumnItems.DataBind.TableName;
    string fieldName = oColumnItems.DataBind.Alias;
    HTH!

Maybe you are looking for