Dynamic branching - how?

Hello,
I'm stuck a little bit.
I'm on Apex 4.1, Oracle 11g XE
I have a page which branches to 2 different pages depending on a page item. I the item is set to A it branches to page A, if set to B it branches to page B. Now this works for buttons CANCEL, CREATE and SAVE.
It does not work for button DELETE though, as there is this "reset page" process wich wipes out all page items. Obviously my design is flawed.
But how can I achieve this? Branching depending on some kind of page property which works for all buttons.
Thanks,
Stephan

As far as I can understand this problem, I'd guess it depends on at which point your branching takes place. It should in this case be before the "clean up" prosses. If necessary you may have to create a new branching, which only takes place on the condition of your Delete-button pressed.

Similar Messages

  • When I use dynamic link how do I continue using it after closing and reopening a project?

    Hi
    Im very new to AF
    I cant seem to find the answer to this in any tutorials.
    When I using dynamic link, how do I continue using it after closing and reopening a perm pro project?
    Thanks
    Philip

    Hi Kevin
    Thank you very much for such a quick reply.
    I actually figured it out. As usual it was fairly obvious solution.
    I opened both project at the same time.
    Thanks again and sorry for waisting your time.
    R
    Philip

  • Can we create internal table dynamically ? how?

    hi to all experts,
                           can we create internal table dynamically ? how?plz explain me with an example.Anybody with good example  will be rewarded.it was asked in an interview what the answer for it

    HI
    Yes you can create
    see this
    /people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
    JUST USE THIS CODE AND DO THE ESSENTIAL CHANGES ACCORDING TO YOU
    STEP: 1 - get backend field catalog (currently displayed alv)
    CLEAR: tl_fieldcatalog. REFRESH: tl_fieldcatalog.
    CALL METHOD w_grid->get_backend_fieldcatalog
    IMPORTING
    et_fieldcatalog = tl_fieldcatalog.
    STEP: 2 - create a new fieldcatalog for dynamic internal table
    CLEAR: sl_fieldcatalog.
    CLEAR: t_outtab_fieldname. REFRESH: t_outtab_fieldname.
    CLEAR: tl_fieldcatalog_new. REFRESH: tl_fieldcatalog_new.
    CLEAR: t_download_fieldname. REFRESH: t_download_fieldname.
    CLEAR: t_download_fieldheading. REFRESH: t_download_fieldheading.
    LOOP AT tl_fieldcatalog INTO sl_fieldcatalog.
    STEP: 2.1 - populate data in T_OUTTAB_FIELDNAME
    APPEND sl_fieldcatalog-fieldname TO t_outtab_fieldname.
    STEP: 2.2 - populate TL_FIELDCATALOG_NEW & T_DOWNLOAD_FIELDNAME
    IF sl_fieldcatalog-no_out EQ ''.
    IF sl_fieldcatalog-fieldname NE 'STATUS'
    OR sl_fieldcatalog-fieldname NE 'MESG_STATUS'
    OR sl_fieldcatalog-fieldname NE 'ZLOCK'
    OR sl_fieldcatalog-fieldname NE 'T_PLANT'
    OR sl_fieldcatalog-fieldname NE 'T_CSR'.
    If field is COMM_PLANT, change its length
    IF sl_fieldcatalog-fieldname EQ 'COMM_PLANT'.
    sl_fieldcatalog-outputlen = 1800.
    sl_fieldcatalog-intlen = 1800.
    sl_fieldcatalog-dd_outlen = 1800.
    ENDIF. "comm_plant
    sl_fieldcatalog_new = sl_fieldcatalog.
    APPEND sl_fieldcatalog_new TO tl_fieldcatalog_new.
    APPEND sl_fieldcatalog-fieldname TO t_download_fieldname.
    APPEND sl_fieldcatalog-scrtext_l TO t_download_fieldheading.
    CLEAR: sl_fieldcatalog, sl_fieldcatalog_new.
    ENDIF.
    ENDIF.
    ENDLOOP.
    STEP: 3 - create dynamic internal table
    FREE: ref_download.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    I_STYLE_TABLE =
    it_fieldcatalog = tl_fieldcatalog_new
    IMPORTING
    ep_table = ref_download
    E_STYLE_FNAME =
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ASSIGN ref_download->* TO <ft_download>.
    CREATE DATA ref_wa LIKE LINE OF <ft_download>.
    ASSIGN ref_wa->* TO <fs_download>.
    STEP: 4 - populate data in dynamic internal table
    LOOP AT t_outtab INTO wa_outtab.
    LOOP AT t_download_fieldname.
    ASSIGN COMPONENT t_download_fieldname OF STRUCTURE
    <fs_download> TO <fs_download_field>.
    IF t_download_fieldname-field EQ 'COMM_PLANT'.
    STEP: 4.1 - get long text from database table
    CLEAR: wal_table.
    SELECT SINGLE * FROM zshaven_plnt_txt
    INTO wal_table
    WHERE vbeln = wa_outtab-vbeln
    AND posnr = wa_outtab-posnr
    AND del_no = wa_outtab-del_no
    AND del_itm = wa_outtab-del_itm.
    IF sy-subrc EQ 0.
    STEP: 4.2 - break long-text into separate lines
    CLEAR: tl_text. REFRESH: tl_text.
    SPLIT wal_table-plant_comm
    AT '~'
    INTO TABLE tl_text.
    STEP: 4.3 - Combine these separate lines with space in
    between two lines
    CLEAR: wal_text, final_text.
    LOOP AT tl_text INTO wal_text.
    IF final_text IS INITIAL.
    final_text = wal_text.
    ELSE.
    CONCATENATE final_text '-' wal_text
    INTO final_text.
    REPLACE '-' WITH ' ' INTO final_text.
    ENDIF.
    ENDLOOP.
    STEP: 4.4 - move long text to work-area
    <fs_download_field> = final_text.
    ENDIF. "subrc
    ELSE. "t_download_fieldname
    READ TABLE t_outtab_fieldname
    WITH KEY field = t_download_fieldname-field.
    ASSIGN COMPONENT t_outtab_fieldname-field OF STRUCTURE
    wa_outtab TO <fs_outtab_field>.
    <fs_download_field> = <fs_outtab_field>.
    ENDIF.
    ENDLOOP.
    STEP: 4.5 - Move data from work-area to dynamic internal table
    APPEND <fs_download> TO <ft_download>.
    CLEAR: <fs_download>.
    ENDLOOP.
    STEP: 5 - download
    CALL FUNCTION 'DOWNLOAD'
    EXPORTING
    filename = 'C:\zshaven.xls'
    filetype = 'DAT'
    filetype_no_show = 'X'
    filetype_no_change = 'X'
    TABLES
    data_tab = <ft_download>
    fieldnames = t_download_fieldheading
    EXCEPTIONS
    invalid_filesize = 1
    invalid_table_width = 2
    invalid_type = 3
    no_batch = 4
    unknown_error = 5
    gui_refuse_filetransfer = 6
    customer_error = 7
    OTHERS = 8.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  • Dynamic programming( how to read a dynamic node )

    Hi,
        i have a node consists of four static and 5 dynamic attributes, how to capture all the data as a table or how do i read full node as a table. i have used get_static_attributes_table( ), it works only for static attributes,but i need to read complete node as a table. Kindly help me, high priority
    Regards,
    sankar

    Hi Sankar,
    I would suggest you to remove "high priority" to get any attention to this post. Sorry for not answering your question directly, but the answer depends on what context you need to read the node with static and dynamic attributes?
    One suggestion would be to use the GET_ATTRIBUTES( ) metods of the node info (IF_WD_CONTEXT_NODE_INFO). You get the node info by calling method GET_NODE_INFO( ) from the node. The GET_ATTRIBUTES( ) method will return a table, which you for example can loop. To get a value of an attribute you use the GET_ATTRIBUTE( ) method of the node (IF_WD_CONTEXT_NODE).
    /Björn-Henrik

  • Added dynamic text; How do I stop variable name from showing?

    I am creating a simple game for kids.  On the first page, I added an "input text" field for their first name.  I called the variable firstname.
    When they move to the next page, I used a "dyanamic text" field so I can call them by name on this page.  It works.  However, When I test the game, on the first page, where the firstname is input, it shows    _level0.firstname          instead of just a blank space for them to input their name.
    I know I fixed this in the past and it was something simple, but I can't remember how to do it.  I'd appreciate anyone's help!
    Thanks.

    Beginning with Flash MX (version 6), you assign the text field an instance name using the Property inspector. Although you can use the variable name method with dynamic text fields for backwards compatibility to Flash 5 and earlier versions, Macromedia doesn't recommend this, because you can't control other text field properties, or apply style sheet settings

  • Dynamic actions - how to create an infotype with a date - 1 day.

    Hi everyone,
    I need a requirement to change an infotype through dynamic action with ENDDA = BEGDA of maintaned infotype(0000) - 1 day.
    In other words when a  personel action is performed, another infotype (2001) should appear for change, and in the validity period of this infotype should end with the day before the start of the personel action.
    is it possible to achieive this using dynamic actions? how?
    Thanks!
    Stanislaw Adamski

    Hi Adamski,
    A dynamic action has the following components.
    Infotype Number (INFTY): specifies the infotype for which you want the dynamic action triggered
    Subtype (SUBTY): narrows the focus to a specific subtype
    Field Name (FIELDN): starts your action when a maintenance function is performed on a particular field
    Function (FC): specifies the various maintenance operations to which your dynamic action would respond. They are 02 (change); 04 (create); 06 (create and change); 08 (delete); 10 (change and delete); 12 (create and delete). Dynamic actions are only applicable in maintenance operations, not in display functions.
    Sequence Number (NO): refers to a sequential number.
    Step (A): specifies a particular type of action. No dynamic action is executed if the function character has a value other than one of the following:
                 P: Plausibility checks, which allow you to check certain conditions.          
                 I: Calls an infotype for processing
                 W: Called after the I statement and used to assign values to screen fields while creating or copying another infotype record through the I statement 
                  F: Calls a FORM routine (subroutines in ABAP) during your action. The routine may reside in or out the module pool MPNNNN00.
                 V: Lets you treat collectively a number of fields for which you want to define a common dynamic action
                  M: Sends SAP Office mail
    Variable function part: The variable function part along with the step indicator forms the core part of your action. It specifies the processing details when the dynamic action is triggered. For example: 
    you have to look for the scenario what you are planning tyo create .
    The maintenance of dynamic actions is done via the view V_T588Z, as shown in 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions
    Here you havev to use conditions INS for the infotype what you want to create..
    Please brief the light on the scenario.
    Warm Regards,
    Kapil Kaushal

  • Dynamic Pages: how to overide the default format returned from the oracle query.

    When writing a dynamic page, portal always displays any return from a database query in a default format or grey background table:
    <TABLE border="0" cellspacing=0 cellpadding=2 style="background-color:#E0E0D0">
    <TR>
    <TH ALIGN="LEFT" style="background-color:#C0C0A0" > </TH>
    </TR>
    <TD ALIGN="LEFT" valign="TOP" WIDTH="0">
    Is there anyway to change this or this how the
    function
    PORTAL30.wwv_render_report.show always works?
    Thanks in advance!

    James,
    Please see posting http://technet.oracle.com:89/ubb/Forum70/HTML/000073.html.
    Just a reminder, please search the forum before posting your question. It's quite likely that someone else has already asked the same question.
    Regards,
    Jerry
    null

  • Editing Local Dynamic Pages - How To?

    I figure this should be something simple but I can't seem to figure out how to do it. In the past I believe this is something I was able to do in DW.
    I've set up my website locally running off my local server and everything there seems to be working in DW. I can view the live page and live code. However, I can't view the live page and edit that page.
    Does anyone have any recommendation on how I can best add some code into a dynamic page? I'm running CS5. Here's a screenshot of an example. Let's say I wanted to insert some simple code where the arrrow is.
    I really need some help on this as it's something I was under the impression I could do. Thanks for any help you can give.

    When I turn off Live Code and leave Live View on the code displayed is just of index.php (no matter what live page I'm on). So I can't really edit anything.
    That's right.  Those files contain nothing to edit.  It's all just PHP programming that the server parses into content from the database and countless other files (server-side includes).  
    A WordPress site really is a one page site -- index.php.  That page is re-created on the fly each time someone clicks a link or uses the search bar.
    If you have worked with WordPress before, you should know you cannot edit dynamic pages in DW.  You can only edit the parts that make up those pages.  Those parts are inside your Themes folder.
    header.php
    sidebar.php
    footer.php
    index.php
    single.php
    page.php
    archive.php
    category.php
    tag.php
    etc...
    Design View is pretty much useless.  You must be able to work with code.
    Nancy O.

  • Map _attributes_ dynamically. How to?

    Good day.
    I'm struggling with a following problem.
    I need to dynamically create and map attributes. I've read the document "Dynamically Creating, Building and Mapping a Context in Web Dynpro", it was a bit helpful but it doesn't fit all my requirements.
    What I've done:
    1) Created an attribute in my controller:
    wdThis.wdGetContext().getNodeInfo().addAttribute("Attr1", "com.sap.dictionary.string");
    BTW, I can see, that the method addAttribute is overloaded and we can pass the IDataType, but I couldn't find how to replace "com.sap.dictionary.string" with IDataType. Is it possible?
    2) Now, I want to map that attribute with an attribute in my view:
    IWDNodeInfo custNodeInfo = wdThis.wdGetInitializationController()
         .wdGetAPI()
         .getContext().getRootNodeInfo();
    IWDAttributeInfo localNodeInfo = wdThis.wdGetAPI().getContext()
         .getRootNodeInfo().addMappedAttribute("Attr1", "com.sap.dictionary.string");
    BTW, what do the parameters of the addMappedAttribute mean? Am I right?
    And there is a question - in the docs said that we should use IWDNodeInfo, but addMappedAttribute return IWDAttributeInfo and I can't get how to link attribute in the controller and in the view. It is the main question, hope for your help.

    It's OK.
    I tried the way you suggested but it failed:
    1) Created an attribute in controller:
         wdContext.getNodeInfo().addAttribute("Attr1", "com.sap.dictionary.string");          
         wdContext.currentContextElement().setAttributeValue("Attr1", "test");
    2) Accessed the data in a view:
    Iterator iter =
                   wdThis
                   .wdGetInitializationController()//Initialization - it's mine component
                   .wdGetContext()
                   .getNodeInfo()
                   .iterateAttributes();
    while (iter.hasNext())
                        IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
                        if (attrInfo.getName().equalsIgnoreCase("Attr1"))
                        {                                                  IWDInputField tv =
                                  (IWDInputField) view.createElement(
                             IWDInputField.class, null);
                             tv.bindValue(attrInfo); // Here is an exeption, that the attribute "Attr1" doesn't exist.
                                        transCont.addChild(tv);
    As you can see I got an exception. And it was expected, because there is not any maooing between Attr1 in the controller and view.

  • Dynamic programming How to assign a static UI element to a static tray

    Hi There,
    We are enhancing a standard WDA application and we have a few static UI element created on the view. And now we want to rearrange these element to look like this.
    Current:
    Root
    -> Transparent container1
    -> ZTray
    -> Transparent container2
    target
    Root
    -> ZTray
         -> Transparent container1
        -> Transparent container2
    Can you help me to find out me how can i perform this 'move" assignment using dynamic programming.
    Thanks for your inputs.
    Rgds

    Hi Sudhir,
    You can start trying something like this in WDDOMODIFYVIEW.
      DATA:
         lo_element       type ref to cl_wd_uielement,
         LO_CONTAINER    TYPE REF TO CL_WD_UIELEMENT_CONTAINER.
      IF first_time = abap_true.
        LO_CONTAINER ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
        lo_element = LO_CONTAINER->REMOVE_CHILD( ID = 'ZTRAY' ).
        LO_CONTAINER->ADD_CHILD( INDEX = 1
                                 THE_CHILD = LO_ELEMENT ).
      ENDIF.
    I never did something like that. I guess that depending on the layout type of the view this code will need some changes (e.g matrix layout). I tried a simple test with flow layout and worked fine here.

  • ISQL*PLUS dynamic reports - how to pass connect string in the URL

    When we run dynamic reports thru ISQL*PLUS, does anyone know how
    to pass the connect string info in the URL
    The following is the code from ISQL*PLUS users guide but it
    dosen't show how to pass the connect string
    when I tried to pass hr/your_secret_password@dbserver for userid
    I got an error msg
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <HTML>
    <HEAD>
    <TITLE>iSQL*Plus Dynamic Report</TITLE>
    </HEAD>
    <BODY>
    <H1>iSQL*Plus Report</H1>
    <H2>Query by Employee ID</H2>
    <FORM METHOD=get ACTION="http://host.domain/isqlplus">
    <INPUT TYPE="hidden" NAME="userid"
    VALUE="hr/your_secret_password">
    <INPUT TYPE="hidden" NAME="script"
    VALUE="http://host.domain/employee_id.sql">
    Enter employee identification number: <INPUT TYPE="text"
    NAME="eid" SIZE="10">
    <INPUT TYPE="submit" VALUE="Run Report">
    </FORM>
    </BODY>
    </HTML>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Thanks
    Jay

    The form you use should work when your change
    "hr/your_secret_password" to a valid username, password
    and connect identifier like "hr/hr@MYDB". Don't forget to
    configure MYDB in your tnsnames.ora file on the machine that has
    the iSQL*Plus server.
    What was the error you got?
    The full URL syntax did seem to go missing from the 9.0.1 doc.
    See below for the full syntax. This should be appearing in a
    forthcoming FAQ.
    - CJ
    What syntax can I use to run an iSQL*Plus Dynamic Report?
    You can run a dynamic report by entering the report URI in the
    location field of your browser, or by making the report server a
    link or the action for an HTML form. The iSQL*Plus 9i Release 1
    documentation has examples of these.
    The general syntax for running a dynamic report is:
    {uri}?[userid=logon&]script=location[&param...]
    where uri
    Represents the Uniform Resource Identifier (URI)
    of the iSQL*Plus Server, for example:
    http://host.domain/isqlplus
    where logon
    Represents the log in to the database to which you
    want to connect:
    {username[/password][@connect_identifier]}
    where location
    Represents the URI of the script you want to run.
    The syntax is:
    http://[host.domain/script_name]
    The host serving the script does not have to be
    the same as the machine running the iSQL*Plus server.
    where param
    Specifies the named parameters for the script you
    want to run.
    Named parameters consist of varname=value pairs.
    iSQL*Plus will define the variable varname to equal value prior
    to executing the script e.g.
    ...script=http://server/s1.sql&var1=hello&var2=world
    This is equivalent to the SQL*Plus commands:
    SQL> define var1=hello
    SQL> define var2=world
    SQL> @http://server/s1.sql
    iSQL*Plus, SQL*Plus and SQL keywords are reserved
    and must not be used as the variable names (varname). Note also,
    that since variables are delimited by the ampersand character,
    there is no requirement to enclose space delimited values with
    quotes. However, to embed the ampersand character itself in the
    value, it will be necessary to use quotes.
    For compatibility with older scripts using the &1
    variable syntax, varname may be replaced with the equivalent
    variable position as in:
    ...script=http://server/s1.sql&1=hello&2=world
    Note the & is the URL parameter separator and not
    related to the script's substitution variable syntax.
    Commands and script parameters may be given in any
    order in the dynamic report URI. However, please note that if any
    parameters begin with reserved keywords such as "script" or
    "userid" then it may be interpreted as a command rather than a
    literal parameter.

  • Dynamic report - how to....? Exitvariable???

    Hello,
    I want to create a very dynamic report.
    Column A
    Column B
    Column C
    Column A should display restricted key figure for a variable year/month.
    Column B should display restricted key figure for a variable year.
    Column C should display restricted key figure for a variable year - 1.
    I only want to work with one(!) selection variable which is year/month.
    The year should be derived from year/month.
    Example:
    Selection variable for year/month = 07.2009.
    Result in
    Column A restricted to 07.2009.
    Column B restricted to 2009.
    Column C restricted to 2008.
    Is this possible? How are the steps? Do I have to work with exit variables?
    Only one selection variable .

    Hello,
    Yes, you can achieve this by User Exit. In the user exit get the user input date and get the current , previous , next year as per your requirement.
    [User Exits in SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23f2f094-0501-0010-b29b-c5605dbdaa45]
    For coding sample [User Exit Examples|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef]
    [Enable Trend Reporting by Manipulating Variable Value|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a]
    Thanks
    Chandran

  • Dynamic columns: how can i add an adjacent column to each dynamic column?

    i would like to extend the dynamic columns example coming with XML Publisher MSWord plugin.
    the example produces a table like:
    TestScore 0-20 21-40 41-60 61-80 81-100
    Theology 20 37 50 12 122
    English 0 55 30 92 52
    Mathematics 30 45 50 102 22
    i would like to have an output like this:
    TestScore 0-20 21-40 41-60 61-80 81-100
    Theology     20 2,8% 37 5,1% 50 7,0% 12 1,7% 122 17,0%
    English     0 0,0% 55 7,6% 30 4,2% 92 12,8% 52 7,2%
    Mathematics 30 4,2% 45 6,3% 50 7,0% 102 14,2% 22 3,1%
    For each "original" value column i need an adjacent additional column with percentages
    one big header cell for the value- and adjacent percentage-column together.
    (the percentages can either be calculated in the template or they could be
    part of the XML. e.g. <PercOfStudents>2</PercOfStudents> as an additional child
    of the <TestScore> group.
    is this possible?
    how could i add an adjacent column to each dynamic column?
    any suggestions, tips or hints?
    Regards
    Peter

    Hi Peter
    Sorry, I was going to take a look at this this morning but got caught up in meetings. Glad you managed to work it out. I have a proposal for you, how about letting me post your solution to hte BIP blog? I can write it up and just use your examples ... full credit to you of course :o)
    Regards, Tim

  • APEX dynamic action - How to hide an item after the page loads

    Hello
    I have a form  with  item  Type,  lesson and page.   I want to create a  dynamic action like "on page load" if Type = x then don't show lesson and page items. .
    How do I say if Type=x then  don't show lesson and page. otherwise show them.
    Please note Dynamic action,  Event=Page load
    Thanks

    create dynamic action like
    Event:Change
    Selection Type:Item
    Item:Type
    Condition:Equal To
    value:X
    Select Action:Hide
    Select Items to hide
    also create opposite false action
    and click on page checkbox below action to yes
    Hope this may helps
    pars.

  • Dynamic translations - how do i pull them out?

    Hello everyone,
    just a quick question:
    Suppose i have a hundred dynamic translation loaded in Apex, how do i pull them out in case i want to load them on a different apex environment?
    It seems to me that there is no way to export them, but hopefully i am wrong.
    Bye,
    Flavio
    http://oraclequirks.blogspot.com

    how nice when one realizes that there is a solution exactly in the same moment while one is pressing the "post message" button.
    Here is my "epiphany":
    dynamic translations are based on user data, which means that these data must be stored somewhere.
    Now, to pull out the translations one must execute the APEX_LANG.LANG function for the desired language(s) and store the result in some table if the returned text is different from the source text. If the text is equal for both languages it is reasonable to think that the translated text is missing or redundant.
    Thanks for my help :-D
    Flavio
    PS: however i still think it could be useful to have the option of exporting existing dynamic translations in the XLIFF files as for other named messages.

Maybe you are looking for