Dynamic Variable based on Hierarchy causes additional prompts

Hi all,
I am getting some additional prompts in Crystal Report in following scenario and need some help to avoid them
The query in BI has active cost center hierarchy and cost element hierarchy. It has two variables, Fiscal Year/period (X) and Budget Version (Y).
In the report I have created a Dynamic parameter (Z) based on Cost Center Hierarchy. So when previewing the report, in designer as well in Info View, I get prompted for three variables (X, Y & Z).
The issue is, before list of values are presented for selection for variable Z, it prompts me again for variables X and Y. Also, at this time around, prompts for variables X & Y does not show their list of values.
The report has been created with SAP MDX driver, has been published to Business Objects Enterprise via saving report to SAP BW. SAP authentication is used to preivew/view the report from CR designer as well as in BOE.
Can some please point out what I am missing and help me to get rid of prompts for variables X & Y second time.
Thank you,
IMS

Hi Ingo,
After much testing and looking into trace etc. we have got this thing to behave as desired. Basically, following two things,
- no reference to CR Dynamic Hierarchy variable on report. There were places where this parameter was being refered and causing grief. We tested with brand new report.
- making sure that on query Cost center restriction is placed in Characteristic Restriction area of Filter tab of query, as oppose to default value area filter tab.
With above in place, the published report in infoview behave as desired, i.e. proper hierarchy structure in cost center prompt and group tree and only desired nodes showing on report.
Thank you for all you pointers
Regards
IMS

Similar Messages

  • Dynamic variable value based on a value from xml

    I have a invoice template and it is for 4 different companies in my organization. Based on the organization I need to have a different value for a variable that adds blank lines to the end of the invoice. Is there anyway to assign a value to variable based on the value of a xml tag.
    Thanks

    I should have explained better before. I have one invoice template and we want to keep it one template for all companies. Each invoice is run individually, each companies footer is different, I am calling multiple headers and footers based on each company. Since the headers and footers are different I need to be able to add different amounts of lines and the end of each invoice depending on that company. I have accounted for the page break in my logic based on the amount lines the page is long. I just need a dynamic variable that I can assign different values on the fly.
    Thanks

  • Dot charcter in technical name of the BW hierarchy causes WebI to fail

    Hi,
    I have a WebI report based on a BEx query. The BEx query has a mandatory hierarchy variable. The hierarchy has "." dot character in its technical name. The dot character is used to distinguish 2010 and 2010 profit center hierarchies.
    When a universe is generated on this BEx query, the profit center objects have select staments as
    [!V000002_].1012_].[LEVEL00]
    . I think
    ].1012
    causes parsing to fail. Also, I get the "Supplied XML is not valid" error while drilling down the hierarchy in the Webi prompt.
    I manually replaced the string "].1012]" with "]" in the Universe but it did not help. I still get the error in the Webi prompt.
    I came across the note 1447838. However, it suggests to install FixPack 2.7 to get rid of the above behavior. However, I am already on BI XI 3.1 SP3 and I think I should already have fixpack 2.7.
    Please let me know if anyone has any idea on this issue. Of course, I can look at the possibility of using some other character for distingusing between the hierarchies but curious to know if there is any solution.
    Environment:
    BOE XI 3.1 SP3
    SAP BW 7.01
    BO-SAP Integration Kit SP3
    Universe connection authetication - SSO
    Edited by: Bhargav Gandhi on Sep 21, 2011 11:07 PM

    I upgraded BOE to SP4 but still no luck.
    SP4 includes FixPack 3.1 and FixPack3.1 has a fix for ADAPT01383387 (SAP Note 1447838).
    -Bhargav
    Edited by: Bhargav Gandhi on Oct 4, 2011 4:13 PM

  • Dynamic, rules based security

    My organization has an application that needs a very fine grained scurity model, that changes very often and is based upon a rules machnisem (written in PL/SQL). Is there a way to combine a rule based mechanism with the internal ACL mechanism of the iFS ?
    null

    Hi Harvey_SO,
    According to your description, you get the security ignored when using custom dynamic role-based security. Right?
    In Analysis Services, it has some role overlapping scenarios, if two roles used to secure attributes in two different dimensions, which might both apply to some users simultaneously, it can cause the user has no security applied from either role. Please
    refer to workarounds in the link below:
    The Additive Design of SSAS Role Security
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Dynamic publishing not enabling the use of dynamic variables (flashvars)

    I'm have having issues with my website [url removed by moderator].  The Dynamic publishing is not enabling the use of dynamic variables.  Standard magento 1.8.1 install.

    Dear Yugandhar,
      It's work. Thanks. This is a work around way to avoid retrieve list of values Error. I was suspected 2 reasons to cause this issues: 1. prompt option. 2. LOV option.  So, the cause is not prompt option. The main cause could be LOV( list of values ).
    After disable LOV, Republish universe, reset query filter in report, re-query report, restart server(Core, Webi) from CMC.
    I restore LOV option back to universe and republish universe to server.
    Run Query again. The report not retrieve list of values.  The error not show up.
    I try delete the cause problem dimension(year dim), add others dimension and add  the cause problem dimension to query filter with prompt option back. The error not come up.
    Query will not retrieve list of values.
    Finally, the report come back normal status.
    But. I doubt why only year dim will cause LOV retrieve problem but others dim.
                                                                                                                                                  Sam Sheen

  • Hide multiple rows in a dynamic table based on the row value.

    Hi,
    I need to hide multiple rows in a dynamic table based on the specific value of that row.
    I cant find the right expression to do that.
    please help

    Go to the Row Properties, and in the Visibility tab, you have "Show or hide based on an expression". You can use this to write an expression that resolves to true if the row should be hidden, false otherwise.
    Additionally, in the Matrix properties you should take a look at the filters section, perhaps you can achieve what you wish to achieve through there by removing the unnecessary rows instead of just hiding them.
    It's only so much I can help you with the limited information. If you require further help, please provide us with more information such as what data are you displaying, what's the criteria to hiding rows, etc...
    Regards
    Andrew Borg Cardona

  • Can we have a Hierarchy in the Prompt of webi? promot as key-text?

    Hello all,
    Can we have a Hierarchy in the Prompt of webi? We are using Fund Center hierarchy and the user wants to select the top node to get all the nodes under it in hierarchies?
    Also along same lines can we display the Long text and Key ofthe FUnd center in prompt (hierarchy or not)
    Thanks in advance for all the replies.

    Hi david, Gowtham
    Thanks for the replies. I was able to get a hierarchy in the prompt. I created mandatory hierarchy variable in the bex query which is feeding the universe and it automatically came over as hierarchy. I am still not able to get how would you create cascade on same object, I understand the market and region (2 different object) example. So if you can please explain.
    With that said I still am not sure how you would display your prompt with description of objects rather than technical names. Any insight on that please?
    Thanks a lot

  • Order by dynamic variable

    Hello,
    I am trying to sort my query based on a dynamic variable p_sorton in the cursor as follows:
    function getMarketView2(
    p_event_id in ex_event.event_id%type,
    p_fromrow in integer,
    p_torow in integer,
    p_appTZ in char,
    p_calcTZ in char,
    p_sorton in varchar2) return varchar2 as
    type t_ticket_trade is ref cursor return ex_ticket_trade%rowtype;
    v_return varchar2(32767);
    v_return_integer integer;
    v_String varchar2(32767);
    v_ex_ticket_trade_obj ex_ticket_trade_obj;
    v_rowcount integer:=0;
    v_rowtotal integer:=0;
    v_done boolean:=false;
    v_sysdate date:=NEW_TIME(SYSDATE,trim(p_appTZ),trim(p_calcTZ));
    cursor cur_ticket_trade_event_open (p_event_id in ex_event.event_id%type, v_sysdate in date) is
    select "TICKET_TRADE_ID","SELLER_ACCESS_ID","CREATE_DATETIME","MODIFY_DATETIME","LASTMODIFY_BY",
    "BUYER_ACCESS_ID","OPEN_TRADE_DATE","CLOSE_TRADE_DATE","TICKET_SUITE_CODE","TICKET_DATETIME",
    "TICKET_TIMEZONE","TICKET_EVENT_ID","TICKET_TYPE","TICKET_SEAT_TYPE","TICKET_OPPONENT",
    "TICKET_TOTAL_SEAT","TICKET_PRICE","TICKET_PRICE_EXT","START_BID_DATE","OPEN_BID_PRICE",
    "CURRENT_BID_COUNT","CURRENT_HIGH_BID","CURRENT_LAST_BID_DATETIME","CURRENT_BID_INCREMENT_BY","TICKET_TRANSACTION_DATE",
    "TICKET_TRADE_STATUS" from ex_ticket_trade
    where ex_ticket_trade.TICKET_EVENT_ID = p_event_id
    and (ex_ticket_trade.ticket_datetime > v_sysdate)
    and (ex_ticket_trade.ticket_trade_status in ('F','A','AB'))
    and (ex_ticket_trade.ticket_suite_code='N' OR ex_ticket_trade.ticket_suite_code='Y')
    order by p_sorton desc;
    --ex_ticket_trade.ticket_datetime desc;
    ........then comes the rest of the code........
    This code compiles fine but does not use the value passed in the param p_sorton in the order by clause.
    the same code works fine when hardcoded to "ex_ticket_trade.ticket_datetime"
    No idea where I may be going wrong?
    Also can I do anything like ORDER BY v1 v2
    where v1 specifies columns to sort on and v2 asc/desc, coz that's what I really need to do?
    Pls help ...
    Thanks,
    Karuna

    Hi,
    Thanks for the reply ... I tried the same but due to my basic knowledge of pl-sql, I'm running into some other problem.
    ================================================
    CREATE OR REPLACE FUNCTION testMarketView(p_event_id in ex_event.event_id%type,
    p_fromrow in integer,p_torow in integer,
    p_appTZ in char, p_calcTZ in char, p_sorton in varchar2
                   ) return varchar2 as
    type t_ticket_trade is ref cursor return ex_ticket_trade%rowtype;
         v_return varchar2(32767);
         v_return_integer integer;
         v_String varchar2(32767);
         v_ex_ticket_trade_obj ex_ticket_trade_obj;
         v_rowcount integer:=0;
         v_rowtotal integer:=0;
         v_done boolean:=false;
         v_sysdate date:=NEW_TIME(SYSDATE,trim(p_appTZ),trim(p_calcTZ));
         TYPE t_ticket_trade_event IS REF CURSOR;
         cur_ticket_trade_event t_ticket_trade_event;
         v_dynQuery VARCHAR2(1000);
         cursor cur_event_seat_section_row (p_ticket_trade in ex_event_seat_inv.ticket_trade_id%type) is
         select distinct event_seat_section, event_seat_row
         from ex_event_seat_inv
         where ticket_trade_id = p_ticket_trade;
         type t_event_seat_section_row is ref cursor return cur_event_seat_section_row%rowtype;
    /*v_section varchar2(32767);
         v_section_row varchar2(32767);
         the 26 variables that belong to table ex_ticket_trade-----------
         v_ticket_transaction_date date;
         v_ticket_trade_status varchar2(10);*/
    begin
    v_dynQuery := 'select
    "TICKET_TRADE_ID","SELLER_ACCESS_ID","CREATE_DATETIME","MODIFY_DATETIME","LASTMODIFY_BY",
    "BUYER_ACCESS_ID","OPEN_TRADE_DATE","CLOSE_TRADE_DATE","TICKET_SUITE_CODE","TICKET_DATETIME",
    "TICKET_TIMEZONE","TICKET_EVENT_ID","TICKET_TYPE","TICKET_SEAT_TYPE","TICKET_OPPONENT",
    "TICKET_TOTAL_SEAT","TICKET_PRICE","TICKET_PRICE_EXT","START_BID_DATE",
    "OPEN_BID_PRICE","CURRENT_BID_COUNT","CURRENT_HIGH_BID",
    "CURRENT_LAST_BID_DATETIME","CURRENT_BID_INCREMENT_BY",
    "TICKET_TRANSACTION_DATE","TICKET_TRADE_STATUS"
    from ex_ticket_trade where
    ex_ticket_trade.TICKET_EVENT_ID = ' || p_event_id || ' and (ex_ticket_trade.ticket_datetime > '|| v_sysdate||')
    and (ex_ticket_trade.ticket_trade_status in ('||'''F'''||','||'''A'''||','||'''AB'''||'))
    and (ex_ticket_trade.ticket_suite_code='||'''N'''||' OR ex_ticket_trade.ticket_suite_code='||'''Y'''||')
    order by '|| p_sorton ||'desc ' ;
    select count(*) into v_rowtotal
    from ex_ticket_trade
    where
    ex_ticket_trade.TICKET_EVENT_ID = p_event_id
    and (ex_ticket_trade.ticket_datetime > v_sysdate)
    and (ex_ticket_trade.ticket_trade_status in ('F','A','AB'))
    and (ex_ticket_trade.ticket_suite_code='N' OR ex_ticket_trade.ticket_suite_code='Y')
    order by ex_ticket_trade.ticket_datetime asc;
    v_ex_ticket_trade_obj:=ex_ticket_trade_tabobj.initialize;
    v_rowcount:=1;
    OPEN cur_ticket_trade_event FOR v_dynQuery;
         LOOP
         FETCH cur_ticket_trade_event INTO t_ticket_trade;
    /*     -- THIS IS WHAT I HAVE TO DEAL WITH IF I CAN"T
         --PUT THE RESULTS OF THE CURSOR in t_ticket_trade
         v_ticket_trade_id , v_seller_access_id , v_create_datetime, v_modify_datetime , v_lastmodify_by ,
         v_buyer_access_id, v_open_trade_date, v_close_trade_date, v_ticket_suite_code, v_ticket_datetime,
         v_ticket_timezone, v_ticket_event_id , v_ticket_type, v_ticket_seat_type,     v_ticket_opponent,
         v_ticket_total_seat, v_ticket_price ,     v_ticket_price_ext , v_start_bid_date, v_open_bid_price ,
         v_current_bid_count , v_current_high_bid , v_current_last_bid_datetime , v_current_bid_increment_by ,
         v_ticket_transaction_date , v_ticket_trade_status ;
    if (t_ticket_trade.TICKET_SEAT_TYPE is null) then
    for t_event_seat_section_row in cur_event_seat_section_row(t_ticket_trade.ticket_trade_id) loop
    if (t_event_seat_section_row.event_seat_section is not null) then
    v_section := t_event_seat_section_row.event_seat_section;
    BEGIN
    select alt_txt into v_parking_desc from ex_alt_txt
    where event_id = p_event_id
    and alt_txt_type = 'PARKING_DESC'
    and original_txt = v_section;
    t_ticket_trade.TICKET_SEAT_TYPE := v_parking_desc;
    EXCEPTION
    WHEN no_data_found THEN
    v_section_row := 'Sec. ' || v_section;
    if (t_event_seat_section_row.event_seat_row is not null) then
    v_section_row := v_section_row || ', Row ' || t_event_seat_section_row.event_seat_row;
    end if;
    v_section_row := substr(v_section_row, 1, 30);
    t_ticket_trade.TICKET_SEAT_TYPE := v_section_row;
    END;
    exit;
    end if;
    end loop;
    end if;
    if ((v_rowcount >= p_fromrow) and (v_rowcount <= p_torow)) then
    -- p_ex_ticket_trade => t_ticket_trade
         -- THIS IS WHAT I CAN'T DO in the next line IF I get the results of the cursor in seperate variables
         v_ex_ticket_trade_obj:=ex_ticket_trade_tabobj.maprowtoobj(p_ex_ticket_trade => t_ticket_trade);
    v_string:=v_string||v_ex_ticket_trade_obj.todatastring;
    end if;
    if (v_rowcount>=p_torow) then
    exit;
    end if;
    v_section := null;
    v_section_row := null;
    v_parking_desc := null;
    v_rowcount:=v_rowcount+1;
    end loop;
    v_prefix:='1' || v_delimiter || v_rowtotal || v_terminator;
    v_return:= v_prefix || v_ex_ticket_trade_obj.tometadata||v_string;
    return v_return;
    end;
    ===========================================
    I keep running into one error:
    PLS-00403: expression 'T_TICKET_TRADE' cannot be used as an INTO-target of a SELECT/FETCH statement
    How can I get each row of the cursor either as an object or as 'T_TICKET_TRADE' ?
    Thanks,
    Karuna

  • Switch Section in a dashboard based on the selection of Prompts (OBIEE 10G)

    Hi All,
    I have a requirement : I have to switch Section in a dashboard based on the selection of Prompts (OBIEE 10G).
    Lets say I have 1 report in section1 and another report in section2 of a dashboard. I have a dashboard prompt,now say when the user does not select any value in a prompt I have to show section1 and when he selects values in a prompt then I have to show section2 of the dashboard. I tries this using Guided Navigation Link and presentation variable but there is a limitation that I have to select only one value in the prompt as i have created presentation variable.
    But the client wants the prompt as Multi Select. in this case I can 't use the presentation variable.
    How can I fulfil this requirement.Please let me know.
    Thanks,
    Krishna

    How you create your multiselect prompt? Is it based on a column? Using multiselect prompt you'll get an issue in this case. The prompt behavior with choosing all values and choosing nothing is equivalent. But your requirement has different behavior lines.

  • Dynamic Destination based on data in message using the File adapter

    I am unsure of where to start searching for a clue as to how to impement this. Any comments would be much appreciated.
    Scenario
    IDOC   -
    > XI -
    > File adapter -
    > File System
    (DESADV)                                                        (Variable based on info in DESADV. ie Site)
    Essentially I wish to use XI as a router and transformer for certain message types depending on the data within the message itself.
    Is anyone aware of any documentation around this kind of scenario ?
    Additional Notes
    There is the possibilty of have up to 1000 different destinations from the same message, but the message will ONLY be sent to the site addressed within.
    thanks in advance ..

    Hi Richard,
    The scenario requirement is not yet very clear.
    But if you want to route the Idoc to different receiver systems depending the payload value, you may configure it in ID with different business services and then using conditional Receiver Determination using XPath.
    That is one way, and if you want to use the same receiver service and only 100 different target folders on the File System, then you can surely use the Variable Substitution for the Target Directory in NFS File Adapter. You can build the target path with from the payload value in variable substitution table under the advanced tab in File Adapter. Remember to set the "Create Target Directory" indicator under Target tab.
    Hope one of these might be a solution for you. Let me know if you need more detailed information.
    Regards,
    Suddha

  • Dynamic variable names and invalid_character_err

    I'm neither an expert at structure notation nor dynamic
    variable naming conventions and would appreciate any help with the
    following. Thanks!
    This code works fine.
    <cfset idx="123">
    <cfset form.product[idx]=StructNew()>
    <cfparam name="form.product[idx].product_nm"
    default="Raspberry Jam">
    <cfform name="data_entry" method="post" format="flash"
    height="525" width="675" action="formdump.cfm">
    <cfformgroup type="tabnavigator" height="400"
    width="650">
    <cfformgroup type="page" label="Product #idx#">
    <cfinput name="static_form_name" type="text"
    label="Product" value="#form.product[idx].product_nm#" height="350"
    width="600" readonly="yes">
    </cfformgroup>
    </cfformgroup>
    </cfform>
    The following code results in the following error:
    "ORG.W3C.DOM.DOMEXCEPTION ERROR. Message: INVALID_CHARACTER_ERR: An
    invalid or illegal XML character is specified." The only change is
    in the "name" attribute of the <cfinput> tag:
    <cfset idx="123">
    <cfset form.product[idx]=StructNew()>
    <cfparam name="form.product[idx].product_nm"
    default="Raspberry Jam">
    <cfform name="data_entry" method="post" format="flash"
    height="525" width="675" action="formdump.cfm">
    <cfformgroup type="tabnavigator" height="400"
    width="650">
    <cfformgroup type="page" label="Product #idx#">
    <!--- Change value of name attribute from
    "static_form_name" to "product[idx].product_nm" --->
    <cfinput name="product[idx].product_nm" type="text"
    label="Product" value="#form.product[idx].product_nm#" height="350"
    width="600" readonly="yes">
    </cfformgroup>
    </cfformgroup>
    </cfform>
    Pam Grieger
    [email protected]

    Thanks for the info. Knowing what WON’T work is
    helpful!
    Here’s what I’m trying to do. I’m rewriting
    one of my apps, switching out conventional HTML form controls for
    <cfform> controls in Flash format. Many of the existing forms
    in my app are for updating data contained in a central database.
    When such a form is rendered to the screen, each form control is
    pre-populated with existing data. All form controls are named
    dynamically based upon the unique ID of the record being updated.
    Here’s a streamlined but typical example:
    <!--- User selected projects 14, 15, 16, and 17 for
    update. Get existing project data. --->
    <cfquery name="get_project_detail"
    datasource="#application.DataSource#">
    SELECT project_oid_nbr, project_nm
    FROM project_table
    WHERE project_oid_nbr IN (14,15,16,17)
    ORDER BY project_oid_nbr
    </cfquery>
    <!--- Initialize the project_nm form control. Form names
    are dynamic, based upon get_project_detail.project_oid_nbr. --->
    <cfloop query="get_project_detail">
    <cfparam name="form.project_nm_#project_oid_nbr#"
    default="#get_project_detail.project_nm#">
    </cfloop>
    <!--- Create HTML form control. --->
    <table>
    <cfloop query="get_project_detail">
    <tr>
    <td>
    <cfoutput>
    Project #project_oid_nbr#:
    <input type="text" name="project_nm_#project_oid_nbr#"
    value="#Evaluate("form.project_nm_#project_oid_nbr#")#">
    </cfoutput>
    </td>
    </tr>
    </cfloop>
    </table>
    This has been working just fine. However, I’m wondering
    if using the Evaluate() function is the most efficient way to go.
    Therefore I wanted to use structure notation to avoid the
    Evaluate() function, but as mentioned in my original post, this
    naming convention won’t work with <cfform> tags.
    Any suggestions as to the most efficient way to get the same
    result while still using <cfform> tags? Thanks so much!

  • How to create dynamic tree based on BAPI

    Hi
    I am able to create dynamic tree based on flat file structure example given in SDN . But how to create the tree from BAPI directly.Also when I will be clicking on any leaf node of the tree some data related to the node will be passed to another view.
    Regards
    Ananda

    What i'm trying to do is create an organizational structure.
    Global>Region>Plant-->Corporation
    The output from the RFC is a structure containing every possible combination for orgazational hierarchy. Basically a flat table with record for every possible combinaton of Region-Plant-Corporation. This data needs to be bound to a tree structure so that we can call BW queries based on that level. For example: Give me aged inventory for the SAP corporation within the plant Berlin that is located in the Europe region.
    Now that you understand the business reason will the nodes that represent Region and Plant and corporation be non-singleton nodes or recursive? I was thinking a hierarchy of non-singleton nodes.
    I can bind these nodes to the Region - Plant - Corporation elements returned from in the flat table structure. I will probably get duplicates as a specific Region will be listed multiple times for every possible combination of the data beneath it. I'm not so concerned about that right now as I want to make sure I understand how in Web Dynpro to bind the data to the tree.
    Hopefully this makes some sense. Can you elaborate on how this may be constructed in context of the view?
    Would i create a model node for region (0..n), model node for plant (0..n), and a model node for Corporation (0..n)?
    Or does this sound totally incorrect?
    julian
    We have 3 regions over 50 plants and probably around 500 corporations.

  • Displaying dynamic variable text in WEBi

    Hi I would like to populate data to my dashboard using a Webi report. My datasource is BI query.
    In this query I have two dynamic variable values where the user needs to enter the starting period & ending period
    If the user enter starting period as  2009 & ending period as 2010 it should display the text as Dynamic year 2009 to 2010
    as below
    Region -
    Dynamic year 2009 t 2010
    WW_______41
    if the user enter the values starting period as  2008 & ending period as 2011 it should display the text as Dynamic year 2008 to 2011
    IThe result was successful in the BI query but when I us eteh same query in Webi & when I run the webi report it prompts me to enter the starting period & ending period values & when I execute it it displays the values for this period but not showing the text it dispaying the technical name instead of teh dynamic text like below
    Region -
    &CRMTFY&CRMTEY&
    WW_______41
    How can I get these dynamic text
    Thanks

    Hi Sirisha,
    Use User responce Function for diaplying the input data as
    User Responce('(dataprovider(any data object name)), 'prompt name')
    In the 1st parameter try to use diff functions available in BO instead of hrdcoding data provider name.
    Cheers,
    Suresh A.

  • Generate dynamic variables

    I'm kinda new to JSP, and have the following question:
    is it possible to generate dynamic variables in JSP? I searched the WWW, and it seems nobody ever used it. Or I just searched wrong :)
    So:
    String result = "";
    for(int i = 1; i <= 10; i++){
    result = "test" + i;
    // do something with result here
    I would like that the string "result" becomes a variable: test1, test2, test3, ...
    I know it is possible in PHP like this:
    for($i=1; $i<=$10; $i++){
    $result = ${"test".$i};
    // here I can do something with the generated variables $test1, $test2, $test3, ...
    Does anyone got a solution for this problem? Cause it's driving me crazy ;)

    I tried, but I keep getting error's... Anything wrong?
    import java.awt.event.*;
    import java.awt.*;
    import java.util.*;
    import java.util.Map;
    public class AwtCalculatorFrame extends Frame{
         private Button[] btnCalc;
         private Panel pnlLabel;
         private String[][] btnArrRow;
         private Label lblRes;
         private Panel[] pnlBtnRow;
        public AwtCalculatorFrame(String titel) {
            super(titel);
            MaakLayout();
            ToonFrame();
        private void ToonFrame() {
            setSize(250, 250);
            Dimension d = getToolkit().getScreenSize();
            setLocation((d.width - getSize().width) / 2, (d.height - getSize().height) / 2);
            addWindowListener(new AwtCalculatorListeners());
            setVisible(true);
        private void MaakLayout(){
            setBackground(new Color(224, 224, 224));
            setLayout(new GridLayout(6, 1, 5, 5));
            pnlLabel = new Panel(new GridLayout(1, 1, 5, 5));
            String[][] btnArrRow = new String[5][5];
            btnArrRow[0][0] = "Sin";
            btnArrRow[0][1] = "Cos";
            btnArrRow[0][2] = "Tan";
            btnArrRow[0][3] = "C";
            btnArrRow[0][4] = "CA";
            btnArrRow[1][0] = "7";
            btnArrRow[1][1] = "8";
            btnArrRow[1][2] = "9";
            btnArrRow[1][3] = "Sqrt";
            btnArrRow[1][4] = "Pow";
            btnArrRow[2][0] = "4";
            btnArrRow[2][1] = "5";
            btnArrRow[2][2] = "6";
            btnArrRow[2][3] = "x";
            btnArrRow[2][4] = "/";
            btnArrRow[3][0] = "1";
            btnArrRow[3][1] = "2";
            btnArrRow[3][2] = "3";
            btnArrRow[3][3] = "+";
            btnArrRow[3][4] = "-";
            btnArrRow[4][0] = "+/-";
            btnArrRow[4][1] = "0";
            btnArrRow[4][2] = ".";
            btnArrRow[4][3] = "Pi";
            btnArrRow[4][4] = "=";
            Label lblRes = new Label("0.");
            add(pnlLabel);
            Button[] btnCalc = new Button[btnArrRow.length];
            for(int c = 0; c < btnArrRow.length; c++){
                pnlBtnRow[c] = new Panel(new GridLayout(1, 5, 5, 5));
                for(int i = 0; i < btnArrRow.length; i++){
                    btnCalc[i] = new Button(btnArrRow[c]);
    pnlBtnRow[c].add(btnCalc[i]);
    add(pnlBtnRow[i]);

  • Dynamic LOV based on Current user

    How do i make a dynamic LOV based on the user id of the current user.
    Also how to insert values from a form into a database
    Can anyone please help me out.
    Thanks

    Use portal.wwctx_api.get_user to get the currently logged in userid.
    The simplest example of a form manipulating data is to create the form based on a table. All DML works automagically. You can base your form on a procedure with dummy columns and do your own DML if you wish. Lots more flexibility that way...

Maybe you are looking for

  • I want to back up (NOT sync) my iphone calendar to my PC. Last time I lost my entire calendar. How can I avoid this?

    I find the term 'sync' maddeningly imprecise and iTunes frustratingly counter-intuitive. So here's the situation: iPhone calendar - bulging; Outlook calendar - zilch. I want to back up FROM iPhone TO PC. Last time I tried this it seems the blank Outl

  • Help me please! Below is what happened to me.

    My iPad is disabled and it will not connect to the internet. I tried to erase it using Find my iPhone on iCloud but it said it needed to connect to the internet. I also tried to restore it numerous times using iTunes, but it will not connect to my co

  • Sun Ultra 5

    Hi everybody, I have buyed a Sun Ultra 5 used with Solaris 8 pre-installed. When I turn-on power the system starts but I havent openboot prompt. I want install Solaris 10. How I can start openboot's prompt and run the command "boot cdrom"?

  • Video on my iWeb created pages

    I have tried several different methods/codecs of video loaded onto my site using iWeb. I've tried mp4, wmv, flv and mov. None of which seem to be viewable to anyone not on a Mac. Can someone please tell me why or what I may be doing wrong? Thanks!

  • Photoshop Elements 10, how to consolidate pictures on disk?

    When I moved my wife's pictures to a new computer, I put the pictures and catalog on the D: drive, thinking that the new pictures would also go on the D: drive.  I did this because the C: drive on her computer is a small SSD, and only has the Windows