When I define a variable in BO it automatically turns it into a detail

i have made a user prompt in my report
so the user can input a value that does not exist in universe so i can use it as condition or a filter,
i have done this by using the followiing condition in the query
   object = object
or
   object = ToPrompt("Give number")
As you can see by the logic this condition will ALWAYS be true because object  = object  is always true. So this logic will not impact the rest of the query it will just allow to enter any value in the user prompt
in the report when i try to create a new variable
=ToNumber(UserResponse ("Query 1 with NEW_UNIV" , "Give number"))
it automatically turns it into a detail and i cant change it to measure or dimension.
is there a way to fix this
thanks in advance

some one answered in the following link
[When I define a variable in BO it automatically turns it into a detail;

Similar Messages

  • Error when defining a variable  other than CHAR

    I am getting a syntax error when I define variables :
    data: l_arbei  type p.
    constants:  l_delim  type x  value '09'.
    Message L_ARBEI must be a character-type field (data type C, N, D or T). an open control structure introduced by "INTERFACE"
    Has anyone else experienced this problem.  Why can I not define these variables.

    data: l_arbei  type p decimals 1,
          l_ismnw  type p decimals 1.
      write w_ops-work_activity to l_arbei. 
      l_arbei = l_arbei - l_ismnw.          
      if l_arbei gt 0.                      
        write l_arbei to w_ops-work_activity.
      endif.
    As mentioned same error message when defining the following:
    constants:  c_delim  type x value '09'.
         split i_input1-line at c_delim into 
               w_hdr-orderid                 
               w_hdr-order_type.              
    I agree that there should be no problem with the definitions. However cannot understand why it does not like it.  Thought there might be an additional requirement for Unicode systems.

  • Error when defining a variable from a class

    Hi,
    I'm getting this error message when trying to define a
    variable from a class:
    '1086: Syntax error: expecting semicolon before left paren.'
    I can't see where the error is.
    The scripts Question.as and Codeframe.as is located int the
    folder Mycomponents under the project.
    Regards
    /Acke
    **** Main app *****
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.CloseEvent;
    import myComponents.*;
    var Question():myComponents.Question=new Question(); // !!
    This line causes the error !!
    other code goes here....
    ]]>
    </mx:Script>
    **** The class definition ******
    package myComponents
    //import other classes needed
    import Mycomponents.Codeframe
    public class Question {
    // Define properties and methods.
    // Define public vars.
    public var Qtype:string;
    public var Condition:string;
    public var Qnumber:string;
    public var Qheading:string;
    public var Pretext:string;
    public var Qtext:string;
    public var Posttext:string;
    public var Codeframe():string;
    public var Reserved:string;
    public var EditableFrom:string;
    public var EditableTo:string;
    public var Decimal:string;
    public var SetQfactor:string;
    public var Logic_if():string;
    public var Logic_then():string;
    // Public constructor.
    //public function Question(){
    // do stuff to set initial values for properties
    public function Question(Type:string,
    Condition:string,
    Qnumber:string,
    Qheading:string,
    Pretext:string,
    Qtext:string,
    Posttext:string,
    Codeframe():string,
    Reserved:string,
    EditableFrom:string,
    EditableTo:string,
    Decimal:string,
    SetQfactor:string,
    Logic_if():string,
    Logic_then():string,
    ):Void
    this.Type=Type;
    this.Condition=Condition;
    this.Qnumber=Qnumber;
    this.Qheading=Qheading;
    this.Pretext=Pretext;
    this.Qtext=Qtext;
    this.Posttext=Posttext;
    this.Codeframe()=Codeframe();
    this.Reserved=Reserved;
    this.EditableFrom=EditableFrom;
    this.EditableTo=EditableTo;
    this.Decimal=Decimal;
    this.SetQfactor=SetQfactor;
    this.Logic_if()=Logic_if();
    this.Logic_then()=Logic_then();
    }

    1.
    It should be
    var theQuestion:Question = new
    Question(sType,sCondition:string,sQnumber,sQheading,sPretext,sQtext,sPosttext,
    sCodeframe,sReserved,sEditableFrom,sEditableTo,sDecimal,sSetQfactor,sLogic_if,sLogic_then )
    As you don't have default values in the constructor - you
    should specify the parameters.
    2. why do use type "string" ? It should be "String" if you
    refer to a standard type
    3. What are you trying to say by this:
    public var Codeframe():string;
    public var Logic_if():string;
    public var Logic_then():string;
    There should not be any parenthesis in the variable
    declaration.
    4.
    this is wrong
    var Question():Question=new Question();
    this even wronger
    var Question():Array=new Question(); // I'm trying to create
    an array here anyway...could this be the problem??
    no parenthesis!
    var Qs():Question=new Question();
    hmmmm....
    .var Qs()=new Question();
    I think you should start reading from the following link to
    get more understanding of the variables, types & declarations:
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001863.html
    Cheers,
    Dmitri.

  • Permissions needed for user to define workflow variable

    Hi all
    im using a workflow on sharepoint designer 2007, running on list of customer orders. the workflow is trying to use data from customer list.
    In the workflow i used the "define workflow variable" step on customer order list. the users who are using the order list have Contribute permission so they can add items. on the customer list they have read permission.
    when an item is created, the workflow is suppose to generate the varieble by combining data from the two lists: selecting the customer from the current order item and suppose to combine it with data from the customer list for that specific customer
    and keeps it in the variable.
    for users with full control permission for the site, the workflow is completed ok. for the users with the contribute and read permissions it ends with an error and doesnt store the variable (i cheked it by storring the variables in the workflow history).
    what are the permission needed to manage to do the action of storring the variable?
    or any other ideas for the error?
    Thanks in advance

    Hello Cajuntank and welcome to the Palm forums.
    Palm Desktop needs to be installed with the local administrator priviledge during the install of Palm Desktop, the HotSync Manager, the first HotSyn sync, and the installation of any third-party conduits on the desktop.
    After that, the local admin rights can be revoked.
    Alan G

  • How can I define global variable in user exit whic I can use anywhere.

    Hi all,
    How can I define global variable( Table ) which I can use when it come back to same user exit where I defined and stored some data.
    What I mean is I want to define 1 global table.
    In user exit when it comes I store some information. and again when it will come I will have that stored information so I can use it.
    Thanks a lot in advance.

    You can use EXPORT  TO MEMORY ID and IMPORT FROM MEMORY ID Statement for this.
    EXPORT T_ITAB FROM T_ITAB TO MEMORY ID 'ABC'.
    IMPORT T_ITAB TO T_ITAB FROM MEMORY ID 'ABC.'

  • Defining "Form Variables"

    Hi all,
    I have been defining Form Variables in the following manner :
    *<Field name='global.firstname'>*
    I always use the prefix "global".
    Next, I edit the "IDM schema" file, making sure to add the new field/attribute, as follows :
    *<IDMAttributeConfiguration name='firstname'*
    description='default attribute from UserExtendedAttributes/UserUIConfig'
    syntax='STRING'/>
    The reason I did this is because : I noticed that, if I do not specify the attribute itself in the "Schema" file, then the values will not be SAVED when I input them in the User Form.
    However, I was informed that IDM does not require that Form Variables be specified in the Schema file. In fact, Form Variables do not require the *"global"* prefix to be used.
    But, if that's true, then why are my field values not being STORED?
    Any tips will be greatly appreciated.
    Thanks

    This subject is covered in the very beginning of the training courses and in the documentation.
    Adding an attribute to the schema means that it can be stored in the IdM Repository, nothing else.
    Using the "global" prefix means that the attribute value will be stored in ALL resources that has an attribute with the same name.
    If You want to store the user just in the IdM repository, you can use the prefix "accounts[Lighthouse]" instead which also prevents the value being stored at other resources as well. "Lighthouse" being the IdM default resource name.
    While on it, You should look up what the prefix "waveset" means too!

  • Defining Environment Variables

    Hi, I've been trying to define environment variables on Mac.
    1) I tried creating the following directory ~/.MacOSX/environment.plist and adding the environment variables but it didn't work. I got input/output error when I tried creating .MacOSX!
    2)I tried to set them using export varname=value, didn't work.
    Can someone help me please.

    Who needs the environment variables? If it is a Terminal session, then creating $HOME/.bash_profile is the way to go.
    If it is an application that you launch from within your login session, then the ~/.MacOSX/environment.plist will do that (after you logout and login again).
    I like to use RCEnvironment for maintaining the ~/.MacOSX/environment.plist file.
    <http://www.versiontracker.com/dyn/moreinfo/macosx/15073>
    If you need this for some daemon that starts at boot time, or is run via launchd, or maybe cron, then the above does not apply.

  • Functionality loss when 'Using Query Bind Variables in Advanced Search

    Regarding: 'Using Query Bind Variables in Quick or Advanced Search'
    The functionality to do the following is lost when I use bind variables in the Advanced Search:
    "Result matches all conditions"
    "Result matches any condition"
    "Case Sensitive?"
    Is there a way to Search with Detail groups but to keep the above functionality?

    Hi,
    Your application module impl java class extends the JHeadstart class JhsApplicationModuleImpl. THe latter declares a method:
    public void advancedSearch(String viewObjectUsage,java.util.ArrayList arguments,Boolean allConditionsMet).
    In your application module impl java override the advancedSearch method where you can include your own custom code before invoking the super method:
    super.advancedSearch(viewObjectUsage,arguments,allConditionsMet);
    The 'arguments' parameter is an arraylist of QueryCondition objects. You can set several properties for QueryCondition objects such as case-sensitity, operators etc.
    Regards,
    Ibrahim

  • Define Global Variable in XSLt

    H,
    Please let me know how to define Global Variable in XSLT.
    I have define a variable under for-each and i want to use that variable after for-each.
    Please suggest on the same.
    Thanks,
    Pradeep

    Hi Pradeep,
    IN XSL design, right click on target node and then select --> Add Variable. Give the name you desire to that variable and click OK. You can use that variable anywhere in that particular XSLT. In the source xsl you will see entry like this after adding your variable
    "<xsl:variable name="your variable name">value you want to give</xsl:variable>".
    Hope this helps.
    Regards,
    Karan

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • Define query variable

    Hi Experts
    I want to run a  query using parameters. can you please provide me instructions on how to create the parameters. Basically what i want is to be able to select the query and then the ' define query variables' to pop up in-order for me to enter the variables.
    What do i need to do to prompt for this 'define query variable' window
    Thank you
    Regards
    Apsara

    Hi!
    Try this !
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Set @FromDate = (select min(S0.DocDate) from OINM S0 Where S0.Docdate >= '[%0]')
    Set @ToDate = (Select max(S1.Docdate) from OINM S1 Where S1.DocDate <='[%1]')
    SELECT T0.* FROM vw_HHBookingAdvice T0 WHERE T0.BookingDate >= @Fromdate and T0.BookingDate <= @ToDate

  • Key Date- Can i define 2 variables

    Hi Guru's,
        I have a requirement to define 2 variables in Bex- Key date.
    I am thankfull for any inputs of how to go about.
    Thanks
    Hari

    Hi,
    Here you should have 2 -  valid to and 2 - valid from fields in the datatarget .One set of Valid to and valid from fields for  Characterstics ZA and another set ofValid to and valid from fields for  Characterstics ZB. And then you can use RKF concept to get the required output .
    But it is not at all possible throygh Key date as you exepecting. If I remeber correctly Thats what I suggested you in one of the previous threads.
    With rgds,
    Anil Kumar Sharma .P

  • Syntax for defining a variable  with size in changing parameters

    hi,
    syntax for defining a variable  with size in changing parameters in the form statement.

    Hi prasad,
    1. one option is to type it as an data element.
    eg.
    form abc changing myvar type char10.
    endform.
    where char10 is a data element with length 10 characters.
    regards,
    amit m.

  • Design question: When to use instance variables

    Looking for best practice/design advise.
    I am working my way through an exercise where I convert a zip code to a postal barcode (and back), validate the format, and validate/generate a check digit. My code works fine. I posted comments and methods below for reference. In addition to the book I am using, I also read http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html.
    My question is: In designing this class, should I have defined instance variables to hold the generated zipcode, barcode, and checkdigit and then used getter methods to get the zipcode or barcode?
    I planned on creating a user interface to ask for a zipcode or barcode and present a conversion to the user. The only methods that need to be called are "convertBarcodeToZipcode" and "convertZipcodeToBarcode". All the other methods are utility methods. The strings that are returned by these two methods are presented to the user.
    I could, easily enough, create and populate instance variables, but would I keep the return statements as well or remove them?
    Thanks, Mike
    ps: I am self-learning java, so I don't have an instructor to ask. :)
    public class PostalBarCode {
         * Constructor.
         * Set up the barcode ArrayList
        public PostalBarCode() {
                barcodeUnits.add("||:::");
                barcodeUnits.add(":::||");
                barcodeUnits.add("::|:|");
                barcodeUnits.add("::||:");
                barcodeUnits.add(":|::|");
                barcodeUnits.add(":|:|:");
                barcodeUnits.add(":||::");
                barcodeUnits.add("|:::|");
                barcodeUnits.add("|::|:");
                barcodeUnits.add("|:|::");
         * Convert a barcode to a zipcode.
         * Assumes the input format is valid. Validates the check digit
         * @param theBarcode string to be converted
         * @return the zipcode as a String of empty string for error
        public String convertBarcodeToZipcode(String theBarcode) {}
         * Convert the Zipcode to a barcode
         * @param theZipcode string to be converted
         * @return the barcode as a string
        public String convertZipcodeToBarcode(String theZipcode) {}
         * Determines if theString is a barcode
         * @param theString
         * @return true if the input is a barcode, false otherwise.
        public boolean isBarcode (String theString) {}
         * Determines of theString is a zip code
         * @param theString the string to test for 5 digits
         * @return true for a zip code, false otherwise
        public boolean isZipcode (String theString) {}
         * Convert a barcode to a zipcode.
         * Assumes the input format is valid. Validates the check digit
         * @param theBarcode string to be converted
         * @return the zipcode as a String of empty string for error
        public String convertBarcodeToZipcode(String theBarcode) {}
         * Convert the Zipcode to a barcode
         * @param theZipcode string to be converted
         * @return the barcode as a string
        public String convertZipcodeToBarcode(String theZipcode) {}
         * Calculate the check digit from the zipcode
         * @param theZipcode as a String
         * @return the the check digit or -1 for error
        public int calculateCheckDigitFromZipcode(String theZipcode) {}
         * Calculate the check digit from the barcode
         * @param theZipcode as a String
         * @return the the check digit or -1 for error
        public int calculateCheckDigitFromBarcode(String theBarcode) {}
         * Validate the format of the barcode.
         * Should be 6 blocks of 5 symbols each.
         * Also check if frame bars are present and strip them.
         * @param theBarcode
         * @return true for proper format, false for improper format
        public boolean validateBarcodeFormat (String theBarcode){}
        private  ArrayList<String> barcodeUnits = new ArrayList<String>();
    }

    These are just my two cents. The various methods that determine whether something is a zip or bar code can easily remain static. After all, you probably don't want to create an instance and then call something like isValid(), although you could do so. The various other methods could easily be instance methods. You could have a toZipCode() or toBarCode() method in each object to convert from one to the other. I would personally throw something like ValidationException rather than returning -1 for your various check-digit methods.
    - Saish

  • Best practices for defining Environment Variables/User Accounts in Linux

    Hello,
    After reading throught the Quick Install guide for 10gR2 on x86_64 Linux, I see that it is not recommended to define ANY variables in .bash_profile.
    I'm hoping to get a Best practices approach for defining environment variables - right now we use the oracle linux account for administration including sql*plus. So, where should the myriad variables be defined? Is it important enough to create a user account in linux to support best practices?
    What variables, exactly, should be defined? It seems that LD_LIBRARY_PATH is no longer being used?
    Thanks in advance
    Doug

    Something that I've done for years on unix/linux boxes is to create a seperate environment variable setup file for each instance on the box. This would include things like ORACLE_HOME, ORACLE_SID, etc. Then I would create an alias in my .bash_profile that would execute this script. As an example, I would create a orcl.env file that would hold all of the environment variables for this instance. Then in my .bash_profile I would create a line like the following:
    alias orcl=". $HOME/orcl.env"
    Then from anywhere you could type orcl and you would set your environment to connect to that database.
    Also, if you are using 10g, something else that is really nice if you are using sqlplus, and you connect to different databases without starting a new sqlplus session is to set a parameter in your $ORACLE_HOME/sqlplus/admin/glogin.sql file:
    set sqlprompt "_user 'at' _connect_identifier >"
    This will automatically change your command prompt to look like this:
    RALPH at ORCL >
    if you connect as GEORGE, your prompt will immediately change to :
    GEORGE at ORCL >
    This way you can always know who and where you are connected to.
    Good luck!

Maybe you are looking for