Different windows to be displayed based on conditions

Hi all,
I have a smartform in which there are 3 types of data to be printed :
1st - upper half - Customer data
2nd - Middle -  Vendor Info.
3rd - Lower half - Warehouse info
Now based on the Vendor info,the amount  and type of data to be printed  in the middle portion of the form varies.
My strategy:
Create a smartform  with 3 parts :
1st part -->secondary window -->template -->display customer data
2nd part --> I have 3 types of vendor,so 3 secondary windows with different designs.
3rd part -->secondary window >template>dislay warehouse info
My question:
For the 2nd part,Now based on  the o/p condition i.e. the vendor name,is it possible that  the corresponding window out of the 3 secondary windows be called?
If so,where do I put the condition??Under the tab "OUTPUT CONDITIONS" of each of the secondary windows????
Please advise.
Thanks!

HI,
You need to specify the condition in Conditions tab,, Not in Output condition... for each secondary window..
Since in SF there is option for conditions, It is possible to trigger any window based on any specific condition
So please give that Vendor in Field name column and pu a relation operator and then put the Comparison value..
Regs,
Lokesh..

Similar Messages

  • Add different UI in each row based on conditions in ALV

    Hell All,
    i am working on dynamic ALV in which i have created 3 methods 1. which creates the columns 2. Which sets the data into teh created columns. 3. which does teh alv customizations.
    So now my requirement is based on some condition i want to change the UI element 
    eg
    i have
                                  column1      column2            column3
                                      1            link_to_action     name
                                      2            link_to_url          name2
    so based on the condition i would like to display the ui elements as above.
    I was able to do till this end so far..
    1.in create_columns method i created a column call cell_varaint
    2 when i was passing data into the columns
    'when column1'
      IF  colum1 = 1.
    <field> = 'link_to_url'
    else.
    <f_field>  = ' '.
    endif.
    when 'column2'
          CREATE OBJECT lr_link_to_actn.
                 <ls_column>-r_column->set_cell_editor( lr_link_to_actn ).
                 CREATE OBJECT l_cv.
                 l_cv->set_key( value = 'LINK_TO_URL').
                 l_cv->set_editor( value = lr_lnk_to_url ).
                 <ls_column>-r_column->add_cell_variant( r_cell_variant = l_cv ).
                 <ls_column>-r_column->set_sel_cell_variant_fieldname( 'cell_varaint).
    so now i am able to get only empty column with no data into it ... and my cell varaint column shows me the values like LINK_to_URL or space.
    I am sure tht some where i am missing something...
    Please tell me the correct procedure to use it...
    Regards,
    Sana.

    I hope it is Hello not Hell
    if i understand your question correctly, You want the first row of column to LinkToAction UI element and second row LinktoURL.
    follow the link where it is nicely explained however he is making one row as text view and other as checkbox.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e7461d-5e6c-2b10-dda9-9e99df4d136d?quicklink=index&overridelayout=true

  • Need different rows from single query based on condition

    Hi,
    I have a table with 100 rows that holds employees and their roles.
    I need to write a SQL(not a PL/SQL block) as below
    1. When employee with role 'VP' logs in, the query should return all the 100 rows.
    2. When employee with role 'MGR' logs in, the query should return only those rows whose MGR is the logged in employee.
    3. When employee with role 'SALE_EXEC' logs in, it should return single rows corresponding to this SALE_EXEC.
    My requirement here is to get these outputs from a single query.
    Can anyone please help me with this.
    Thanks,
    Vivek.

    use vpd
    New Policy Groups
    When adding the policy to a table, view, or synonym, you can use the DBMS_RLS.ADD_GROUPED_POLICY interface to specify the group to which the policy belongs. To specify which policies will be effective, you add a driving context using the DBMS_RLS.ADD_POLICY_CONTEXT interface. If the driving context returns an unknown policy group, then an error is returned.
    If the driving context is not defined, then all policies are executed. Likewise, if the driving context is NULL, then policies from all policy groups are enforced. In this way, an application accessing the data cannot bypass the security setup module (which sets up application context) to avoid any applicable policies.
    You can apply multiple driving contexts to the same table, view, or synonym, and each of them will be processed individually. In this way, you can configure multiple active sets of policies to be enforced.
    Consider, for example, a hosting company that hosts Benefits and Financial applications, which share some database objects. Both applications are striped for hosting using a SUBSCRIBER policy in the SYS_DEFAULT policy group. Data access is partitioned first by subscriber ID, then by whether the user is accessing the Benefits or Financial applications (determined by a driving context). Suppose that Company A, which uses the hosting services, wants to apply a custom policy which relates only to its own data access. You could add an additional driving context (such as COMPANY A SPECIAL) to ensure that the additional, special policy group is applied for data access for Company A only. You would not apply this under the SUBSCRIBER policy, because the policy relates only to Company A, and it is more efficient to segregate the basic hosting policy from other policies.
    How to Implement Policy Groups
    To create policy groups, the administrator must do two things:
    Set up a driving context to identify the effective policy group.
    Add policies to policy groups as required.
    The following example shows how to perform these tasks.
    Note:
    You need to set up the following data structures for the examples in this section to work:
    DROP USER finance CASCADE;
    CREATE USER finance IDENTIFIED BY welcome2;
    GRANT RESOURCE TO apps;
    DROP TABLE apps.benefit;
    CREATE TABLE apps.benefit (c NUMBER);
    Step 1: Set Up a Driving Context
    Begin by creating a namespace for the driving context. For example:
    CREATE CONTEXT appsctx USING apps.apps_security_init;
    Create the package that administers the driving context. For example:
    CREATE OR REPLACE PACKAGE apps.apps_security_init IS
    PROCEDURE setctx (policy_group VARCHAR2);
    END;
    CREATE OR REPLACE PACKAGE BODY apps.apps_security_init AS
    PROCEDURE setctx ( policy_group varchar2 ) IS
    BEGIN
    REM Do some checking to determine the current application.
    REM You can check the proxy if using the proxy authentication feature.
    REM Then set the context to indicate the current application.
    DBMS_SESSION.SET_CONTEXT('APPSCTX','ACTIVE_APPS', policy_group);
    END;
    END;
    Define the driving context for the table APPS.BENEFIT.
    BEGIN
    DBMS_RLS.ADD_POLICY_CONTEXT('apps','benefit','APPSCTX','ACTIVE_APPS');
    END;
    Step 2: Add a Policy to the Default Policy Group.
    Create a security function to return a predicate to divide the data by company.
    CREATE OR REPLACE FUNCTION by_company (sch varchar2, tab varchar2)
    RETURN VARCHAR2 AS
    BEGIN
    RETURN 'COMPANY = SYS_CONTEXT(''ID'',''MY_COMPANY'')';
    END;
    Because policies in SYS_DEFAULT are always executed (except for SYS, or users with the EXEMPT ACCESS POLICY system privilege), this security policy (named SECURITY_BY_COMPANY), will always be enforced regardless of the application running. This achieves the universal security requirement on the table: namely, that each company should see its own data regardless of the application that is running. The function APPS.APPS_SECURITY_INIT.BY_COMPANY returns the predicate to make sure that users can only see data related to their own company:
    BEGIN
    DBMS_RLS.ADD_GROUPED_POLICY('apps','benefit','SYS_DEFAULT',
    'security_by_company',
    'apps','by_company');
    END;
    Step 3: Add a Policy to the HR Policy Group
    First, create the HR group:
    CREATE OR REPLACE FUNCTION hr.security_policy
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN 'SYS_CONTEXT(''ID'',''TITLE'') = ''MANAGER'' ';
    END;
    The following creates the policy group and adds a policy named HR_SECURITY to the HR policy group. The function HR.SECURITY_POLICY returns the predicate to enforce security on the APPS.BENEFIT table:
    BEGIN
    DBMS_RLS.CREATE_POLICY_GROUP('apps','benefit','HR');
    DBMS_RLS.ADD_GROUPED_POLICY('apps','benefit','HR',
    'hr_security','hr','security_policy');
    END;
    Step 4: Add a Policy to the FINANCE Policy Group
    Create the FINANCE policy:
    CREATE OR REPLACE FUNCTION finance.security_policy
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN ('SYS_CONTEXT(''ID'',''DEPT'') = ''FINANCE'' ');
    END;
    Create a policy group named FINANCE and add the FINANCE policy to the FINANCE group:
    BEGIN
    DBMS_RLS.CREATE_POLICY_GROUP('apps','benefit','FINANCE');
    DBMS_RLS.ADD_GROUPED_POLICY('apps','benefit','FINANCE',
    'finance_security','finance', 'security_policy');
    END;
    As a result, when the database is accessed, the application initializes the driving context after authentication. For example, with the HR application:
    execute apps.security_init.setctx('HR');
    Validating the Application Used to Connect to the Database
    The package implementing the driving context must correctly validate the application that is being used to connect to the database. Although the database always checks the call stack to ensure that the package implementing the driving context sets context attributes, inadequate validation can still occur within the package.
    For example, in applications where database users or enterprise users are known to the database, the user needs the EXECUTE privilege on the package that sets the driving context. Consider a user who knows that:
    The BENEFITS application allows more liberal access than the HR application
    The setctx procedure (which sets the correct policy group within the driving context) does not perform any validation to determine which application is actually connecting. That is, the procedure does not check either the IP address of the incoming connection (for a three-tier system) or the proxy_user attribute of the user session.
    Such a user could pass to the driving context package an argument setting the context to the more liberal BENEFITS policy group, and then access the HR application instead. Because the setctx does no further validation of the application, this user bypasses the normally more restrictive HR security policy.
    By contrast, if you implement proxy authentication with VPD, then you can determine the identity of the middle tier (and the application) that is actually connecting to the database on behalf of a user. In this way, the correct policy will be applied for each application to mediate data access.
    For example, a developer using the proxy authentication feature could determine that the application (the middle tier) connecting to the database is HRAPPSERVER. The package that implements the driving context can thus verify whether the proxy_user in the user session is HRAPPSERVER. If so, then it can set the driving context to use the HR policy group. If proxy_user is not HRAPPSERVER, then it can disallow access.
    In this case, when the following query is executed
    SELECT * FROM APPS.BENEFIT;
    Oracle Database picks up policies from the default policy group (SYS_DEFAULT) and active namespace HR. The query is internally rewritten as follows:
    SELECT * FROM APPS.BENEFIT WHERE COMPANY = SYS_CONTEXT('ID','MY_COMPANY') and SYS_CONTEXT('ID','TITLE') = 'MANAGER';
    How to Add a Policy to a Table, View, or Synonym
    The DBMS_RLS package enables you to administer security policies by using its procedures for adding, enabling, refreshing, or dropping policies, policy groups, or application contexts. You need to specify the table, view, or synonym to which you are adding a policy, as well as the data pertinent to that policy, such as the policy name. Such data also includes names for the policy group and the function implementing the policy. You can also specify the types of statements the policy controls (SELECT, INSERT, UPDATE, DELETE, CREATE INDEX, or ALTER INDEX).
    for more you can refer to
    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14266/apdvcntx.htm

  • Display image based on conditions.

    Hi every one.
    We have to display image (circle) based on three conditions.
    Example; if employee is < 1000 small circle, if salary is > 1000 and < 10000 medium size circle and >10000 big size circle.
    And second condition if employee location is East coast fill black color in that circle, west coast red color central green color.
    Third condition is if employee joining date is less than two years I should display * (Star symbol) in that circle.
    I am trying to create conditional format but it is possible to display only one image .
    My question is how can I change size and color if the image based on conditions and display start symbol with in the image.
    I think I have to create different own images to display for every conditions.
    Is there any way to create my report?
    Thank you very much for your time and help.

    Hi,
    If you want to display everything in one image for end user you need to do some trick.
    sal orginal     region orginal      Joining date     Sal decode value     Region decode value     Joining date decode value      ImageCode
    100     east     20\2\2008     1     10     100     111
    200     WEST     20\2\2008     1     20     100     121
    300     NORTH     20\2\2009     1     30     200     211
    300     NORTH     20\2\2008     1     30     100     131
    100     east     20\2\2008     1     10     100     111
    2000     west     20\2\2009     2     20     200     222
    30000     south     20\2\2009     3     40     200     243
    Create few more columns in your answers, as following
    Salary decode value: based on your original salary decode it to 1 or 2 or 3
    region decode value: based on your regions decode it to 10 or 20 or 30 or 40
    joining date decode value: based on joining date decode it to 100 or 200
    Image code add all of decoded values ie 1+10+100 = 111
    In report show image based on image code
    i.e from above table row1 image code is 111 (small black circle), last record BigCircle Red with Star.
    Pain full thing is you need to create 24 images on your own(3(salary range)*4(regions)*2(join dates) =24) and place all 24 conditions in that column.
    --Hope it helped you
    Thanks
    Srinivas Malyala

  • Key Figure based on condition between characterisics

    Hello Guys
    I have a key figure which needs to be displayed based on condition between 2 characteristics.
    Scenario:
    I have 2 fiscal periods : FP1 and FP2. and a Key Figure KF.
    Condition:
    Show KF only when FP1 not equals FP2.
    EX: If FP1 = May and FP2 = May dont show KF.
          If FP1 = May and FP2 = June then show KF.
    How do i display a key figure based on a condition between 2 characteristics?
    Please advise.
    Thanks.

    Create two formula variables based on replacement path that get the FP1 and FP2 (numeric values).
    Let us say these are ckf1 and ckf2.
    Create another CKF3 which is = "ckf1==ckf2"
    Now, CKF3 will be 0 if these two are not equal, and 1 otherwise.
    Create a condition on CKF3 so as to show only the records with a 0 value.
    Finally hide CKF3.
    That should be it.

  • Adobe forms: Displaying work area data in different windows

    Hi,
    I have a requirement of showing work area data in different windows i.e work area which has sent from program needs to come in different windows of the form. I have created a smartform which will perfectly doing the above logic. The above work area also contains amount fields. I am also passing language 'English' or 'French', based on this i am displaying some texts also.
    But Client wants to see the same requirement in Adobe forms. Ao i am new to Adobe forms, I need some help for performing the above scenario. I am doing my research on this. But i want to know the steps which will not reduce the performance.
    In smartform, first window contains personnel no from work area and the second window contains address from work area. Then i have created a template with employee premium amount column, company premium amount column and total of that, all these from work area. So work area will contain only one row which i have to show in different window and on template.
    In Adobe forms, How can i do the same this which i have done in smart forms.
    Please suggest me any one in doing this. I appreciate your answers.
    Thanks,
    s.vikgnesh

    Hi,
    Yes as Santoosh said there is no such wiondow option in Adobe forms.
    But if you use webdynpro java/Abap we can acheive this.
    think something like this below, if it works.
    have 2 views 1st for the adobe form, 2nd view in a new window for the work area screen.
    in the adobe view have a button for the work area and respective event handler.
    in the event handler call this window, and then reload the same adobe form.
    if from the work area form if you need value to be passed to this adobe form. have a event handler for this.
    when purpose is done, close that window and set value to the required context field on the form. and reload that adobe form.
    this is a fuzzy process and time consuming, unless business has no other option we dont go this approach.
    but for sure this works, we did the same for a EHS process.
    Cheers,
    Sai

  • I have my ITunes account on my home Macbook.  Can I log onto my ITunes account from a different Windows-based computer?

    I have my ITunes account on my home Macbook.  Can I log onto my ITunes account from a different Windows-based computer?

    Yes, but your iTunes library won't automatically show up on a different computer; putting it there is a separate process.
    (122714)

  • Calling different pages in a single sap script based on conditions?

    Hi All,
             Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
    Please help
    Regards
    Priya

    This approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
    SAPscript -
    /: Perform get_date in program z_at_date
    /:    using &p_year&
    /:    changing &new_date&
    /: endperform.
    program z_at_date -
    form get_date TABLES rec_in  STRUCTURE itcsy
                                    rec_out STRUCTURE itcsy..
    DATA:
       v_year type char10.
    sap script and subroutine uses itcsy structure to transmit parameters
    first parameter is incoming while second parameter is out going
    their function is like an internal table with header line
    all data types between SAPscript and subroutine are string.
    so, you might need additional conversion.
    read incoming parameter with exact name from SAPscript
      READ TABLE rec_in WITH KEY name = 'P_YEAR'.
      IF sy-subrc EQ 0.
        v_year = rec_in-value.
      ENDIF.
    to return value, use the exact name on the second structure
        CONCATENATE v_year v_year INTO v_year.
        READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
        IF sy-subrc EQ 0.
          rec_out-value = v_year.
          MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
        ENDIF.
    endform.
    Hope this helps =)

  • Display T - tru or F - false  based on condition

    Hello,
    Could you please let me know how to display T - true or F - False based on condition.
    I am only able to display 0 and 1 but i want F and T instead.
    thanks
    Gade.

    Hi,
    I donot think that it is possible simply with Query designer features. You better think about the Macros . The below thread can be considered as an example(mr. Deveshwar reply).
    Display Date as 00/00/0000 instead of # if date field is empty
    With rgds,
    Anil Kumar Sharma .P

  • How do you get different check box fields to display based upon a list box selection?

    I am a relative newbie with LifeCycle Designer ES using v.8.2.1 to create interactive forms to replace manual hardcopies.  I am working on a form that has a few pull down list boxes.  I want different check box fields to display based upon the selection of an item from one of the pull down lists.
    Any guidance on the best way to accomplish this would be greatly appreciated.

    Hi,
    Here is a sample with script in the change event of the dropdown. You may want to clear previous checkbox choices once the subform is hidden.
    It is good to group objects in a subform - that way you only need to hide the subform and not each object in turn.
    Good luck,
    Niall

  • Lost my iPad and when I attempt to use the "LOST" feature in icloud, the NEXT and CANCEL buttons are not responding.  I have tried this on 3 different windows based computers.  Any ideas???

    When using icloud because I lost my ipad...when i attempt to use the "LOST" feature the "next" and "cancel" buttons do not respond.  I have attempted this on 3 different windows based computers on 3 different networks.  Any ideas? 

    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
     Cheers, Tom

  • FF displays differently on different Windows OS versions

    I run the same Firefox version 3.6.13 on Windows 7 and Windows XP. On XP, Firefox displays the page exactly as expected. But on 7, the same Firefox version messes up the css of the same page!
    I am puzzled as to why this happens??!!
    Same FF version, same website, just different Windows OS ...
    Do the FF configuration options have to be the same on both OS? Does Windows 7 bigger and higher resolution monitor has anything to do with it? Do the pixel and resolution setup in Windows 7 affect the display?

    that a pretty vague problem to try and diagnose. My advise, use a debugger and watch the code execute to understand why it is behaving the way that it is. Is the problem predictable, or does it vcary from time to time. Variance might indicate threading issues. Sounds like you are in for CS hell to me.

  • Conditional display based on Page Template

    I'd like to make some conditional display based on Page temlate value (definition). Example:
    return page_template='TABS';With such an feature it will be easy to exclude some elements defined on "Page 0" on some pages. I know that this could be done by enumerating page_id's...but in this way it will be much flexible...
    Is there such a feature? Will it be ever possible?

    A more flexible way (IMHO) to do this sort of thing would be to define onload application-level computations that set a application item to either SHOW or HIDE depending on the conditions you need. Then make the Page 0 components conditional upon this application item's value.

  • How to give color to the display of keyfigure based on condition using exception.

    Dear Friends.
       I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
    What I am trying to do is :
       in Query designer :
       I have PO Quantity and Delivered Quantity. 
      if PO Qnantity > Delivered Quantity
        then Delivered Quantity field should be colored as "BAD3" in exception.
    but here proble is in exception
      I have alert level , operator, and  value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
    but for value field I dont have PO Quantity for that I have to supply one formula variable,
    When I created a forumula  and did this way
    FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
    Please help me How I can solve my problem
    I will greatly appreciate your any help.
    Thanking you
    Regards
    Naim

    Thank you so much for your replies,
      I did following way and it helped me to solve my issues.
      I created one formula and under formula I use boolean < funtion to compare the values.
    like following way.
    ( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
    here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
    Thanks again for your replies
    Regards
    Naim

  • Problem in opening excel file in different window

    hi
    i want to open excel file in different window it open in same window properly on the bases of condition but when i try to open in different with window.open( )
    it give error that file has already used or path not exist OR requisted site either unavailable
    how can i rectified

    Hi.
    I am too facing the same problem. I am using Jakarta Poi to display my resultset in an excel sheet directly(and not into a jsp)
    The browser opens a window showing Open Save Cancel. If i click and save the excel sheet and then open, it opens. But clicking on Open directly doesnt open the excel sheet. Rather it gives the same error
    The file name or path name does not exist.
    The file you are trying to open is being used by another progrtam . close the document in other program and try again
    The name of the work book your tring to save is the same as name of another document that is readonly .try saving workbook with different name
    Can somebody please help me fix this problem, since its an urgent requirement. Mail me at [email protected]
    Thanks
    Hitesh

Maybe you are looking for

  • Problem running an RCP product

    I am trying to run an eclipse product but I am getting the following exception: {color:#ff0000} org.eclipse.core.runtime.CoreException: Plug-in hydra was unable to load class hydra.Application. at org.eclipse.core.internal.registry.osgi.RegistryStrat

  • HOw to create a console in a GUI??

    Hi, i have redirectioned the java outoup to write in a file, it reacts perfectly to the system.out but when the new outpot becomes anything else as a printf nothing happens. Anyone knows if it could be that the console is not "flusing" the messages.

  • Best option for getting a 3G S now?

    I thought I was going to have to wait until July 29th to get the discount price but ATT's new policy makes me eligible now If I don't want to wait in line tomorrow what is the fastest way to receive a 3G S ... order from Apple or ATT?

  • Error using utl_mail/utl_smtp in procedure.

    Hi folks, When i execute the below anonymous block, it is working fine. getting mail on my mail id. DECLARE BEGIN EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = ''127.0.0.1'''; UTL_MAIL.send(sender => '[email protected]', recipients => '[emai

  • Can I use an earlier 4.0 beta without it automatically updating to beta 12?

    Even when clicking on print preview, I still often have illegible printing with several spaces between each letter in each word. Is there any way I could use an earlier 4.0 beta and its improvements without Firefox automatically updating from that ea