How to set FIX based on selection made in planning form (HP 9.2)

Hello,
In order to calculate new values in my business rule I have to use CREATENONMISSINGBLK ON option. But it takes too long time to complete the calculation. So, I need to set FIXes in my business rule in order to keep database selection as small as possible.
Is there any possibility to pass page selections prom planning data form to my custom business rule?
For example form:
Columns: Period
Rows: Account
Page: Year, Entity, Version, CustomDimension
In my rule a need to set following fixes:
Account: Custom fixed List
Period: Custom fixed List
Year: Custom fixed List
Entity: Get one values selected in data form
Version: Get one values selected in data form
CustomDimension Get one values selected in data form
OR
is it possible to set default values for Run-time prompts to be equal to selected members in page dimensions?
Thanks.
Message was edited by:
MaxDyug

Hi,
You can set up variables in your business rules so for example,
Create Variable rtVersion, set it as Type member and dimension Version and Usage-Type as "Run-Time Prompt".
Then in your business rule code you refer to the variable using [rtVersion]
Now in planning the design of the form when you choose the properites for the business rule make sure "Use Members on Data Form" is ticked, and run on save.
Now when the form is saved a pop up window will appear passes the selected version member into the run time prompt text box, this will then be passed into your business when submitted.
You can also hide prompts if you want it be sent directly into the business rule without any user intervention.
Hope this helps.
Cheers
John

Similar Messages

  • How to get value in Second Drop Down based on selection made in first dropd

    Hi All,
    I have a table with first two columns as dropdown.
    The values in first drop down are fixed. However the value in second dropdown should be populated based on selection made in first .
    e.g
    First Column had different departments say IT, SALES, HR.
    Based on department selected I have to populate employee of that department.
    For first dropdown I have taken Drop down by index.
    What should I select for second drop down and achieve desired functionality? Please guide.
    Regards,
    Madhvika

    Hi
    Use drop down by key for fixed values IT, SALES, HR. create on_select action for that drop down.
    in on_select method code like this..
      DATA lo_nd_segment1 TYPE REF TO if_wd_context_node.
      DATA lo_el_segment1 TYPE REF TO if_wd_context_element.
      DATA ls_segment1 TYPE wd_this->Element_segment1.
      data lt_segment1 type wd_this->elements_segment1.
      DATA lv_segment TYPE wd_this->Element_segment1-segment.
      data lr_column type ref to cl_wd_table_column.
    navigate from <CONTEXT> to <SEGMENT1> via lead selection
      lo_nd_segment1 = wd_context->get_child_node( name = wd_this->wdctx_segment1 ).
    get element via lead selection
      lo_el_segment1 = lo_nd_segment1->get_element( ).
      lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
    get all declared attributes
      lo_el_segment1->get_static_attributes(
        IMPORTING
          static_attributes = ls_segment1 ).
    now ls_segment1 contains your first drop down selection value.
      DATA : lv_dropdown type string .
      lv_dropdown =  ls_segment1-segment.
      if lv_dropdown = 'IT'.
    // here fill your second drop down based on IT value.
    endif.
    Hope it solves.
    Cheers,
    Kris.

  • How to set background color for selected days in DateChooser

    How to set background color for selected days. I created
    checkbox for each day [Son,Mon,Tue,Wed,Thu,Fri,Sat] and a
    DateChooser, I want to change the background color for the selected
    day when i click on a button after selecting the desired checkboxs
    [ monthly wise/yearly wise]
    Thanks in advance

    There is no button involved in the following code, but it may
    be of use to you:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    private var origColor:uint;
    private function init():void {
    origColor = dc.getStyle("selectionColor");
    public function setBackGrdColors(newColor:uint):void {
    dc.setStyle("selectionColor", origColor);
    if(dc.selectedDate){
    var dayOfWeek:Number = dc.selectedDate.day;
    else{
    return;
    switch(dayOfWeek) {
    case 0:
    if(sun.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 1:
    if(mon.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 2:
    if(tue.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 3:
    if(wed.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 4:
    if(thu.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 5:
    if(fri.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 6:
    if(sat.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    default:
    break;
    ]]>
    </mx:Script>
    <mx:VBox horizontalAlign="center" verticalGap="20">
    <mx:DateChooser id="dc" textAlign="left"
    change="setBackGrdColors(cellColor.selectedColor)"/>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="sun" label="Sun"/>
    <mx:CheckBox id="mon" label="Mon"/>
    <mx:CheckBox id="tue" label="Tue"/>
    <mx:CheckBox id="wed" label="Wed"/>
    </mx:HBox>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="thu" label="Thu"/>
    <mx:CheckBox id="fri" label="Fri"/>
    <mx:CheckBox id="sat" label="Sat"/>
    </mx:HBox>
    <mx:HBox width="300" horizontalAlign="center">
    <mx:Label text="Background Color" />
    <mx:ColorPicker id="cellColor"
    selectedColor="#FF00FF"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>

  • How to set role based Authorization in JAAS

    how to set role based Authorization in JAAS
    i had user name , password and role in FileLogin
    thanks
    arun .v.

    http://dev2dev.bea.com/pub/a/2003/04/Kemp_Helton.html?page=last

  • Populate elements in a drop based on selection made in another drop down

    i need to populate elements in a drop based on selection made in another drop down list. have created list models for populating data from R3. I am using PDK for java development.

    hi,
    to populate the second dropdown from the selection of the first u need to the submit the form on the selection of data from dropdown and based on the selection populate the second dropdown.
    If using jspDynpage u can submit the form on the  ''onChange" event of first drop down.
    If you can let us know what type of application is this i think we can help you in more better way.
    Thanks
    Ritushree Saha

  • How to set fixed value in doDML

    Hi,
    My application is ADFBC.
    i am getting fixed value in backing_bean.this value is not coming form VO.how to set this value in doDML.because i want to save this fixed value(this value changing in backing_bean from UIpage) into database.
    actually i am using fixed list box values(these are not from VO) in UIPage and after submitting i am getting this vaue in backing_bean and some updatable table is displaying in UIpage.after filling some values in the updatable table and i am pressing commit button then i have to set this value into one table in databse.
    all updated values are saving because i am using ADF table.now i have to save this list value also in one of the column in this table.
    How to set this value into doDML?
    please help me.
    Thanks,

    Have you thought of creating a "transient" attribute in your EO or VO, that stores the fixed list box value? Then in the doDML method you could grab this attribute's value and update the other EO attribute you're interested in.
    Alternatively in the transient attributes setter in the EO, you could write the code to update the other EO attribute.
    Hope this helps.
    Regards,
    CM.

  • How to set only one row selection  in ALV GRID DISPLAY

    How to set single row selection in grid display
    not multiselection.

    Hi,
    In the USER COMMAND, build the code to check the REFRESHED Data & then check the number of records with SEL  = 'X'.
    If more than single entry found, then raise an error message.
    Best regards,
    Prashant

  • How to set Datagrid 1st row selected

    I want to set 1st row as selected = true as default in
    datagrid after loading the form which out clicking on any item i
    want to set the 1st row as selected, how can i achieve this.
    Thanks in advance

    Thanks for your help,
    Here's the code which i wrote
    datagrid creationComplete="changeColor();"
    [code]
    private function changeColor():void
    dgrid.selectedIndex = 0;
    dgrid.setStyles("selectionColor","#800f3e");
    [/code]

  • How to Set URL-Based Session Tracking to No

    Dear BSP Gurus
    I am fairly new to BSP applications, but I am getting an error which goes "BSP exception: Access to URL /sap(bD1lbiZjPTEwMCZkPW1pbg==)/bc/bsp/sap/crm_ui_frame/ is forbidden" and notice some say they solved it by Setting URL-Based Session Tracking to No, so my question is how do I do that.
    Unless off course there is another way to solve my problem. Would greatly appreciate it.
    Awaiting your favorable response

    Hey Raja and Rajani
    I actually activated all the applications below SAP->BC->->SAP-> **(Application)*->  but still I am getting that error.
    When I then test the individual applications I get errors like
    "BSP Exception: Das Objekt default.htm in der URL /sap/bc/bsp/sap/bp_cont_main/default.htm?sap-client=100&sap-sessioncmd=open ist nicht gültig"
    I really have run out if ideas, I need your assistance, initially I thought it cd be the logical link coz the work centres appear fine then I tried to assign even standard business roles, its giving the same error.
    What do I do now?

  • How to set a Choice not selectable?

    I have a Choice which contains a few items in it. But how to
    make the Choice un-selectable so I have some control on
    the accessibility. Thank you.

    Thank you. The simple code you suggested worked. Which is exactly what the API is for...

  • Odd Behaviour using User Variables to select members in Planning form

    I have a form to enter budget adjustments and another form to review the effects of those adjustments at a parent Entity level.
    For each area of the business there are obviously different adjustment and parent levels required in the form.
    In summary I can drive a form from a User Variable using the functions (Children, IChildren, ILvl0Descendants, Descendants and IDescendants) but trying to use other options results in unexpected behaviour.
    For example with the following structure:
    Entity
    -Total Cost Centre
    --Group A
    ---SubGroupA1
    ---SubGroupA2
    ---SubGroupA3
    ---GroupA-Adj
    ----GroupA-AdjX
    -----AdjEntityA1
    -----AdjEntityA2
    --Group B
    ---SubGroupB1
    ---SubGroupB2
    ---SubGroupB3
    ---GroupB-Adj
    ----GroupB-AdjX
    -----AdjEntityB1
    -----AdjEntityB2
    For the adjustment entry form the users would want to see AdjEntityA1 and AdjEntityA2 if they are in business group A.
    For the review form they would like to see Group A and its children.
    I am trying to avoid writing multiple forms for each business user (largely because the number of groups can vary dramatically). I can't really use generations to drive the selections as whilst the business has effectively levelled the hierarchy business units can be working at different levels of this hierarchy.
    I want to offer a couple of options to the business. One will be to define a form that pulls all of the relevant entities into the form and relies on security to restrict the values displayed to the user. The second option would be to utilise User Variables to drive selections. It is the second option I am struggling with.
    If we consider a user working in Group A, I think I can see a formulaic way to select the various combinations of Entities if I set the user variable to be GroupA-Adj.
    I can define a data form that sets Entity to the L0Descendants of say GroupA-Adj and this is fine.
    When I try to define a review form that selects the Isiblings and Parent of GroupA-Adj I hit a problem.
    It seems that Children, IChildren, ILvl0Descendants, Descendants and IDescendants works as I would expect.
    Using IAncestors and IParents return just the User Variable setting (i.e. just the 'I' part, not the parents or Ancestors).
    Siblings, Isiblings, Parents, Ancestors all result in an error message because not all dimensions are represented in the form.
    This prevents me using a User Variable to build the review form in which I would like to display the siblings and parent of the entity GroupA-Adj.
    Anyone got any ideas?

    I would love to see the ability to select EDA's from Planning Forms, it would definately make life a little easier.
    As CL says, attributes are great at filtering forms and BR's, their only drawback is that you can only use them on sparse dimensional members.
    To get round this problem i've relied on security to filter out the accounts i do not need to see in the forms for the specific users, and kept the form selection on @IDESCENDANTS(Account_Parent).
    If you wish to filter on the Period dimension and this is a dense dimension, can you not get round the problem with rollups and, for example, @DESCENDANTS(Q1) to only return 3 months in the form, it really depends on your outline structure.

  • How to set a default pre-select for radio buttons?

    Hi
    I have some text form fields that I've set up to display some paired variables stored in a .txt file.  When the swf loads, the form fields are populated with the text.
    I've also set it up so that if you change the text and hit a submit button, the .txt file gets updated.
    I'm now tryng to set it up so that I can store radio button selections in the .txt file too.
    I've started doing it a certain way, but am wondering if there is a more straightforward way of doing ?
    Here's what I've done...
    I've set up the butttons to spit out "on" or "off" depending on the selection, and apply that to the variable that gets stored.
    Now, in the same way I loaded the variables into the text form fields when the swf is refreshed, I want to load the on/off variable, and then somehow apply it to the radio buttons so that one of them is pre-selected.
    So my questions are a) how do I take that loaded variable, and use an if statement to make it pre-select the button, and b) is there a simpler way to pre-select a button based on an external variable?
    Thanks
    Shaun

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • How to set width of a select list?

    Hi,
    another newbie question from me :-)
    When I create a select list the default width is 30, no matter what I set this value to the width of the select list stays the same, it gets as wide as the widest element in the list. This messes the design of the page. I f I have three select lists in a column I want them to have the same width. How do I accomplish that?
    /Magnus

    Edit the item and in the HTML Form Elements Attributes field type the following:
    style="width:120px";adjust the 120 to whatever width you like
    Shunt

  • How get changed view based on selected tabBarItem

    Hi All,
    i have used UINavigationController and used UITabBar from IB.
    I have added 3 UITabBarItem named 1. search 2. Recents and 3 .Favorites.
    Now when i clicked on search item it should be open serachViewController and same as remaining two items,
    But i can;t understand that how can i get that which items are selected ....
    pls help me again....buddy
    Thanks.

    I think this is what you are asking for-
    In IB, click on each tab bar button and set the NIB name of the tab controller buttons to the NIB name of your other views, and set the Class of the of each button to the Class files that control those views. Then clicking on each button will load separate NIB files.
    Also, working in tree-view in IB makes it easier to understand what's connected to what when working with controllers like Navigation and TabBar.
    Hope that helps-

  • How to set default value in select option for ABAP query

    Hi experts,
    What is the way to set up default values for select-options in ABAP query.
    e.g.
    I have one field 'Year' in my ABAP query selection screen.
    I want value of current year to be appeared here whenever user execute report
    Thanks in Advance
    -Harkamal

    Hi Harkamal,
    execute your Query via SQ01. On Selection-Screen
    goto save Variant. Mark your field
    as selection variable an press Button election variable.
    Take variable from TVARV and use it.
    Than save the Variant.
    Look at TVARV if the 'Year' is updated to the actualYear!
    regards, Dieter

Maybe you are looking for