Can I use variables in Rules

Hello OPA Expets: 1. I have calculation as below: the order line item depreciation total= ((the specified price per unit for the order line item + the order line item price after Transportation) - the order line item cash discount total) –((( the specified price per unit for the order line item + the order line item price after Transportation) - the order line item cash discount total) * (100-the depreciation rate)/100) how to use variable and simplify above rule to below: the order line item depreciation total= (x –(x * (100-the depreciation rate)/100) 2. I have created question screens for web determinations, but user input fields is around 30 fields. How to create input fields row by row instead of horizontal. 3. I have customized sumary screen, added label and substitued with %FieldName%. How to issue a page break?. now it is all in one line and users unable to find out how calculation logic applied as it is cluttered. Thanks a lot.

Hello OPA Experts:
1. I have calculation as below:
the order line item depreciation total= ((the specified price per unit for the order line item + the order line item price after Transportation) - the order line item cash discount total) –((( the specified price per unit for the order line item + the order line item price after Transportation) - the order line item cash discount total) * (100-the depreciation rate)/100)
how to use variable and simplify above rule to below:
the order line item depreciation total= (x –(x * (100-the depreciation rate)/100)
2. I have created question screens for web determinations, but user input fields is around 30 fields. How to create input fields row by row instead of horizontal.
3. I have customized sumary screen, added label and substitued with %FieldName%. How to issue a page break?. now it is all in one line and users unable to find out how calculation logic applied as it is cluttered.
Thanks a lot.

Similar Messages

  • Can I use a OID rule for a Query SQL Lov of BIP?

    Hi. Can I use OID data (rules) for a query sql lov in BIP? Ex. filters users/store.
    Thank you.
    R.

    Hi,
    I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
    Anyway, you could add this before return "good"; in your login_action()
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
    Pedja

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Maxl - can you use variables in iferror statements

    hi guys,
    A quick one:
    Can you use variables when doing error handling? I assume the answer is yes, but just wanted to make sure.
    example:
    set app1 = Test;
    set app1_db1 = Test;
    alter database $app1.$app1_db1 force archive to file "C:\\EssbaseBackup\\$app1\\$app1_db1\\$app1_db1.arc";
    iferror 'Bk_$app1.$app1_db1_Error';
    define label 'Bk_$app1.$app1_db1_Error';
    exit 10;
    I am putting error handling into my script and want to double check before I go about making the alterations.
    Many thanks,
    Russell
    Edited by: RussellH-C on 26-Apr-2013 04:45

    You don't need to split the files. Create a Maxl with parameters and then call it in a bat file.
    In the bat you can then check for Error.
    essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname1 Dbname1
    call :archiveerrcheck
    essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname2 Dbname2
    call :archiveerrcheck
    archiveerrcheck:
         SET FILE=%MAXLLOG_DIR%\Archive.log
         findstr /R "\<ERROR" %FILE% > ESSErrCheck
          for /F %%A in ("ESSErrCheck") do If %%~zA NEQ 0 (
            call :datestamp
            echo  Error in Archive Process......................... > %ESSLOG%
            copy %FILE% %HYP_MONTH_ERR_DIR%\Essbase\MaxL\Maxl_Error.log
            DEL /Q ESSErrCheck
            call :exit_process
           ) else (
                   echo  %DTSTMP%  Log Out Process was successfull......................... >> %ESSLOG%
                   call :remove_file ESSErrCheck
    GOTO EOF
    :EOFRegards
    Celvin
    http://www.orahyplabs.com

  • How to use variable in rule script in HFM

    I'm now writing VB script for HFM rule, and have something to ask about the use of variables in rule.
    The script below generates the following error.
    -Error description-
    Line: 4, Error: Invalid Expression
    HS.Exp "S#Actual.A#77300.I#[ICP None] = cur"
    An error has occurred in Hyperion Financial Management.
    -Rule script-
    Sub Allocate()
    Dim cur
    cur = 500
    HS.Exp "S#Actual.A#77300.I#[ICP None] = cur"
    End Sub
    On the other hand, the script below works properly.
    -Rule script-
    Sub Allocate()
    HS.Exp "S#Actual.A#77300.I#[ICP None] = 500"
    End Sub
    Probably I'm not using variables in proper way, but have no idea how to correct it.
    Does anyone have any idea?
    Thanks in advance.

    Hello,
    try this in the sub calculate:
    HS.Exp "S#Actual.A#77300.I#[ICP None]=" & cur
    For the sub allocate, I suppose that you do not have the issue because the allocate is not launch during the consolidation process. Allocate is launched separatly by a right click, and can only be done when calculation status = "OK", which means that all calculation have been done (that could not be the case if you have an error like this in sub calculate).
    Hope it helps

  • How can I use variable name as a prameter value in HOST Command ???

    Hi All,
    How can it possible to use variable value in parameter in HOST command ??
    Following in my code:
    host('rwclient server=reptest report=c:\cust_print.rdf p_1= s_sam_cust_id userid=wh1/wh1@dwh desformat=pdf desty=file desname=c:/temp/'||v_sam_cust_id||'.pdf');
    Regards

    Hello,
    The Syntax of the builtin HOST is :
    SyntaxPROCEDURE HOST
    (system_command_string VARCHAR2);
    PROCEDURE HOST
    (system_command_string VARCHAR2,
    screen_action NUMBER);
    So , you can build the system_command_string as any VARCHAR2
    Example are provided in online help :
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builth_m/host.html?tp=true
    Regards

  • Can I use variables in mxml tags?

    I want to control a lot of details in a layout.  I need to use variables to do this.  Of course I can use AS.  Is there a way to do it in the MXML tags?  See the code below.  I can do the "myLine.x = lineX" in AS.  But is there something like:  x="{lineX}" to use in a tag?  (This gives a warning, though it does work.)  It would make life faster if I could...   Is there a "right" way to do this?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   initialize="init()" >
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                internal var lineX:Number = 25;
                private function init():void {
                    myLine.x = lineX + 50;       
            ]]>
        </fx:Script>
        <s:Line id="myLine" xFrom="0" xTo="0" yFrom="50" yTo="300" >
            <s:stroke>
                <s:SolidColorStroke color="0x0000ff" weight="2" />
            </s:stroke>
        </s:Line>
        <s:Line id="myOtherLine" x="{lineX}" xFrom="0" xTo="0" yFrom="50" yTo="300" >
            <s:stroke>
                <s:SolidColorStroke color="0xff0000" weight="2" />
            </s:stroke>
        </s:Line>
    </s:Application>

    Hmm, thanks, that's very useful to know.
    I guess that means I should use AS.  It's not something I need to update often.  Rather, I have a whole bunch of groups of components/graphics that I want to line up based on each other--and when I change my mind about the size or position of one thing (possibly inside a container a level or two), I'd like to be able to just change one variable name rather than have to change them all by hand.  But AS can do it just fine.

  • How to insert delay without using loops, and how can I use variable to store data in labview

    Hi all,
    I am new to Labview and I realized that quite often I am in condition to require a delay beween two functions or elements.. how can we insert a delay in such cases?
    I know how to use delays in a loop. but don't know how to inser some time delay between two elements.
    I have one more question, I know its a bad practice to post 2 questions in 1 thread.
    How can I use a temporary variable to store data, So far I am storing it in an indicator by making it invisible in front panel and making local variable of that indicator, is it the right way to do it ?
    Thanks in advance.

    Generally, LV doesn't have variables in the same sense that most languages do. You can use indicators to perform the same function as variables, but as Adnan pointed out, you run the risk of having race condition and it creates data copies, which is a problem if you have a lot of data. In most cases, you should use wires to perform the function of variables, which is to store data and make it available to the different functions in your code. Instead of thinking about variables, you need to think about data (something like "I have the data coming out of this function. Where does it need to go?").
    Try to take over the world!

  • How Can I Use Variables to Score Interactions?

    I've created a course. Each slide as a question/scenario and three buttons. Two wrong answers and one right. When you choose any of the buttons you get a feedback box that explains why you were right or wrong. These are not quiz slides, but I would like to use variables to score the slides if I could.
    My idea was to create a variable and call it congrats. The variable as a sum of zero. Is it possible for me to add a numerical value to that variable each time a person chooses one of the buttons?
    For example:
    I wanted to add 10 to the variable if you choose the right answer. I wanted to give the incorrect answers a  value of -5. In other words. You could either end up with 10 points on a slide if you choose the correct answer or 0 points if you choose the 2 incorrect answers and the correct answer, or 5 points if you choose a incorrect and correct answer.
    At the end, I would like you come to a slide. this slide will be based on the value of that variable at the end. Either you have a 100 or lower depending on how you did.
    I hope this isn't too confusing.
    Any and all help is appreciated.
    Thanks!

    You forgot one important detail: has the score to be transmitted to a LMS or is it only meant to be shown in the Captivate file?
    And which version are you using? The easiest way to achieve this is to use the partial scoring (and penalty) that is already available for MCQ slides with multiple correct answers.
    I have a lot of stuff on my blog about that type of scoring. Besides question slides, only interactive objects can have a score, everything you can find in the Advanced Interaction panel (F9). Here are some articles I wrote:
    Report Custom Questions - part 1 - Captivate blog
    Report Custom Questions - part 2 - Captivate blog

  • How can I use variable for a package filename and target file inODIFileMove

    I want to use a variable for paths so that when I migrate from Dev to QA to Prod I don't have to do a lot of editing.
    Specifically, I want a variable to be the first part of the path for the filename (\\sundev1\fnd1-hypd1) and join this with the rest (\update\log\*.log or specific filename) using several different objects like the ODIFileMove, ODI OS Command, OS Command, etc.
    Thank you!

    Hi,
    you could set up a database table holding processing parameters (i.e. Column1 - ParamName, Column2 - ParamValue).
    One row could then be ParamName = FilePath, ParamValue = \\<server>\folder\
    So, the refreshing query (attached to a logical schema) would be something like SELECT ParamValue FROM <your table> WHERE ParamName ='FilePath'
    Then, create a variable which can refresh from the database and in the package, drop the variable onto the flow and set it's type to 'Refresh Variable' in the properties.
    Hope this helps.
    geeo

  • Sequence Parameters: Can I use variable number of parameters?

    Can I create a sequence that has a variable number of parameters?
    If not, Can I pass an array of objects as a paramater?
    In the sequence code:
    for (i=0; i< Parameters.Params.GetNumElements(); i++) {
    object o = Parameters.Params[i];
    // Do something with o
    In the above case, can I call the sequence by putting a "new object[] {(double(2.0)}" as the parameter value?
    For example:
    call VarParams
    Params = PropertyObject.SetPropertyObject (Engine.NewPropertyObject (valueType, asArray, typeName, options))

    Not only can you pass an array of different sizes but you can also make a parameter an empty container and fill it with any container.  The problem is you have to access it correctly within the subsequence.  I can see a practical use for the Array but not really for the container.
    Your last question regarding creating params dynamically: I would have a local variable that is in the Value for the parameter and then just change the local to what you want in the PreExpression.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Can I use Variable Offsets or Formula definition  for my problem?

    Hello,
    how can i get my BEx report to show me cash weeks 28 to 35 when i enter 27 as the variable selection? What i need are the next 8 weeks ahead of the week that i entered.
    Thanks,
    SD

    Hi Sebastian,
    Create a new selection in a structur in columns.
    In that selection, use characteristic 0CALWEEK and restrict it by single value, ready for input variable.
    When you restrict the characteristic 0calweek in the selection(right click and restrict), choose the option value range.
    Now in the left part of the window you would see 2 fields, for low and high vaue.Click on F4 help. Put in the same single value variable created before in both the low value and high value field.Now transfer your selection to the right side of the window.
    Then right click on the selection on the right side of the window and  choose set offset value.
    Put 1 in the first window and press ok and 8 in the second window and choose ok until u return to query designer.
    You can place the key figure structure below this structure.
    Hope this helps.
    Regards,
    Sunmit.

  • Can't use variables in SMB share

    I'm trying to push out a share like this:
    smb://server.example.org/HOME/%short_name%
    If I attempt to save this, Profile Manager gives me "A server error has occured." Am I doing something wrong? I thought variables like this were acceptable. I need to be able to mount the given folder inside that HOME folder without the user having to scroll through hundreds of folders to find their own name.
    This is on Server 3.1.2, everything else in profile manager is working fantastically.

    That would probably be a good question for Adobe's tech support people. I'd recommend you contact them for that information.
    Meantime, you can still manually produce your videos and post them to YouTube, etc., using the specs in the FAQs to the right of this forum. Many people prefer to do it this way, since the results are so much better.
    http://forums.adobe.com/thread/623549?tstart=0

  • How can I use variables in an openquery?

    below is my openquery. It works perfect but I need WOADAT range to be dynamic. How can I do that?
    SELECT * FROM OPENQUERY(EPAK,
    'SELECT WOADAT,WOROUT,BCDESC,WDWO#,BCSIZE,BCCHG
    FROM CUST INNER JOIN (BCDE
    INNER JOIN (WO2 INNER JOIN WO1
    ON (WDCMP = WOCMP) AND (WDCUS# = WOCUS#) AND (WDWO# = WOWO#)) ON (BCCMPY = WDCMP) 
    AND (BCSIZE = WDSIZE) AND (BCCHG = WDCHG)) ON (CCMPNY = BCCMPY) AND (CCUST# = WDCUS#)
    WHERE (((WOADAT) between 20140501 and 20140531) AND ((WDCMP)=''08''))order by WDWO#')
    Any help will be greatly appreciated.
     

    David,
    Your statement returned me below error
    OLE DB provider "IBMDA400" for linked server "EPAK" returned message "SQL0518: Prepared statement S000001 not found.
    Cause . . . . . :   An EXECUTE statement referred to the statement S000001.  S000001 is not a valid prepared statement.  The statement has one of the following conditions: -- The statement has never been prepared. -- The statement identifies
    a prepared SELECT or DECLARE PROCEDURE statement. -- The statement was in error at prepare or bind time. -- The statement was prepared in another program or another call of this program and the program was created with CLOSQLCSR(*ENDPGM). -- The statement
    was prepared in another module or another call of this module and the module was created with CLOSQLCSR(*ENDMOD). -- The statement was prepared in another call of this program and programs which have run SQL statements have ended and the program was created
    with CLOSQLCSR(*ENDSQL). -- The statement was prepared in another call of this module and the activation group ended between calls. The module was created with CLOSQLCSR(*ENDACTGRP). -- The prepared statement was destroyed by a COMMIT or ROLLBACK statement.
    This only occurs when connected to a database other than DB2 for IBM i. Recovery  . . . :   Do one of the following: -- If S000001 identifies a prepared SELECT or DECLARE PROCEDURE statement, a different prepared statement must be named in the EXECUTE
    statement. -- If the statement had errors, correct the errors and either prepare the statement again or precompile the program again. -- Make certain that S000001 has been prepared in the same program or module call prior to using the EXECUTE statement or
    specify either CLOSQLCSR(*ENDSQL), CLOSQLCSR(*ENDJOB), or CLOSQLCSR(*ENDACTGRP) when precompiling the application. -- If the statement was deleted by a COMMIT or ROLLBACK, either specify PREPARE WITH HOLD or bind the program with the correct option to preserve
    prepared statements.".
    Msg 7215, Level 17, State 1, Line 19
    Could not execute statement on remote server 'EPAK'.

  • How can we use variables for instance name?

    I'm using 9 textbox in my stage. Names are similar, only difference is the last character. (s1_0, s1_1, s1_2, ...). I'm trying to use these textbox in a loop. But I couldn't find the right typing... s1_[i], s1_(i) or s1_{i} gives error.
      s1_0.text=0
      s1_1.text=0
      s1_2.text=0
      s1_3.text=0
      s1_4.text=0
      s1_5.text=0
      s1_6.text=0
      s1_7.text=0
    how can make the shortest typing for this issue?

    yes, its working, thank you very much...
    I tried array operator but the word "this"..
    what does it means ? when I delete this word, it gives error. how does flash know that it is a instance name?

Maybe you are looking for

  • Captions Are Disappearing in Final Cut Pro X

    Here's my problem.  I'm currently using Final Cut Pro X to put together a 40 min movie.  This movie includes various video clips as well as still images.  Naturally there is a need for many captions/subtitles.  However, when I'm finished for the day

  • Urgent with step by step example

    Hi I was trying to create the given example(Step by step example) from the pdf document(OracleBPM-Tutorial_10.3.pdf) on Page 36 step 12 mentioned as below. My question is Do we expand Expense Report Process or Scren Flow when creating Instance report

  • SKProductsRequest delagate methods never called

    SKProductsRequest delagate methods never called.

  • Time Hierarchy in BW

    Hello Experts, I am new in BW, I have a requirement to create time hierarchy, extructure (Date, Month/Year, Year). How can I create this Hierarchy with that extructure so I can use in my Query. Thanks in Advance.

  • HT201272 Need Help

    Hello there,  I bought this app at August 25th,2013.  I tried couple days, but it couldn't work on my Mac.  I wonder if I can have a refund for this App. I don't want an useless app for my Mac.  The receipt  No. is  216059016717.  Thank you!