formatting variable values

Hi all

I have a variable called beginDate. It stores the value 01-07-2012, 2012-07-31.

Now, my requirement is I need display the value in the report as 07/01/2012,07/31/2012...

I tried the below a it gives the value 07.

<? xdofx:substr($beginDate,6,2)? > output is 07.

but, when I tried concatenate using the he throws under syntax error... oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException.

<? xdofx:substr($beginDate,6,2) | » /'|| substr ($BeginDate, 9, 2)? >.

Please can someone send me the syntax how to achieve my requirement...

Concerning

Hi all

I found the solution... The logic below has worked...

Concerning

Tags: Business Intelligence

Similar Questions

  • change the settings of the view variable value

    Hello

    I want to know if it is possible to change the settings for the debugger, including the display of the "view variable values" settings in labwindows cvi 9.0.

    My problem is that in my project, it is essential to be able to debug and I came across some difficulities with the array of structs containing pointers to structures. So, I did a demonstration to show project:

    typedef struct {}
    short sVar1;
    short sVar2;
    char cVar1 [512];
    } MyStruct2;

    typedef struct {}
    MyStruct2 ReadMyS2;
    MyStruct2 WriteMyS2;
    MyStruct2 * pReadMyS2;
    MyStruct2 * pWriteMyS2;
    } MyStruct1;

    int main()

    {

    MyStruct1 MyS1_Phis [3] = {0};
    int i = 0;

    init
     
    for (i = 0; i<>
    {

    MyS1_Phis [i] .pReadMyS2 = & MyS1_Phis [i]. ReadMyS2;

    MyS1_Phis [i] .pWriteMyS2 = & MyS1_Phis [i]. WriteMyS2;
    }

    }

    Unfortunately, the debugger handles .pReadMyS2 pointer [0] MyS1_Phis as if that it points to an array of 10 elements of type MyStruct2.

    Anyone know the reason for this?

    Thanks in advance,

    Laszlo Nagy

    Hi Laszlo,

    Yes, it is a known problem in CVI. This can happen because of the way the CVI user protection is implemented. It is certainly not desirable, but we probably won't be able to change it at least still a year or two.

    A solution you have is to disable the protection of the user and then rebuild your program (Options > Compiler Options > level debugging: no execution check)

    Luis

  • programmatically set the bind view variable value of object that showed to the query Panel

    Hello

    I have a case in 11.1.1.7 Jdev, I deploy my application on BPM 11.1.1.7.

    I have a VO that three attributes of it was put in a viewcriteria... Let's attribute A1, A2, and A3. the view criteria is any condition "AND".

    and then I create a variable binding in the VO named b. my vo also query using this variable B.

    in the jspx, I create a query panel based on the viewcriteria. then in the A1, A2, A3 and B query pane shows.

    I can reset the Panel request programmatically using this tutorial http://www.jobinesh.com/2011/04/programmatically-resetting-and-search.html

    but unfortunately he didn't succeed for A1, A2, A3 because they are in the display criteria, but B can't reset.

    I tried to put the value programmatically using queryModel, queryDescriptor, setNamedWhereClauseParam, but this failed and it starts to makes me crazy...

    anyone here seen cases like me? and found the workaround? pls throw some light.

    Thank you

    Have you tried with VariableValueManager? http://www.jobinesh.com/2010/10/how-to-set-bind-variable-values-at.html

    Dario

  • How to format a value by using reg expression

    Please, I need to format a value using regular expressions.
    9911223344, 9911223344
    9911223344
      11223344
    Result
    (99) 1122-3344, (99) 1122-3344
    (99) 1122-3344
    1122-3344
    Some tips on how I can do this?

    Kind regards

    Hello

    You were close.
    The first 2 digits are optional, so add a '?' in the model.
    This means that you will get results like ' ((1122-3344'), so use REPLACE to get rid of unwanted brackets.

    SELECT  REPLACE ( REGEXP_REPLACE ( val
                                , '(\d{2})?'     -- ? added here
                               || '(\d{4})(\d{4})'
                                , '(\1) \2-\3'
                         )
              , '() '
              )       AS formatted_val
    FROM    t
    ;
    

    This assumes that "()" does not happen in the raw val. If so, use the REGEXP_REPLACE calls; a search of numbers with eactly 8 digits and the other looking for numbers with exactly 10 digits.

  • can I format the values aggregated within a group

    Hello everyone,

    Question: How can I format the values aggregated within a group.

    I created a group of - >
    <? for-each - group:current-group(); / PZN? >
    ...
    <? end for each group -? >

    Inside the group, I have grouped the VALUE->
    <? amount (current - group (/VALUE))? >

    Now I want to format the VALUE. I tried to apply a mask to format #, # 0.00 and tried to apply
    <? format - number:(sum(current-group()/PREIS));' 999G999D99'? > but either workes.

    full code:
    <? for-each - group:current-group(); / PZN? >
    <? format - number:(sum(current-group()/PREIS));' 999G999D99'? >
    <? end for each group -? >

    Andybody knows what I'm doing wrong?

    Thanks in advance!

    Sorry, I got them mixed up. This should work for you:

    or

    I'm not sure about your version and xslt function, but it seems that it does not recognize the xdoxslt:format_number so I guess that is not supported in the version 5.6.3.

    BR
    Magnus

  • How to pass a variable value into a hyperlink?

    Hello

    I put a variable value by using <? xdoxslt:set_variable ($_XDOCTX, 'tstview', concat ((xdoxslt:get_variable($_XDOCTX,'env_url')), (xdoxslt:get_variable($_XDOCTX,_'testpage')))? >)
    I am able to the value of the variable is displayed correctly. I would use this value to create a hyperlink by specifying {$tstview} {ID} in the text of the hyperlink box. However, when I do that, I get the error message: Undefined Variable: "tstview."

    How can I pass the value of the variable to create a hyperlink? Is there another way to do this? I want to be able to build the hyperlink in a dynamic way. Please let me know.

    Thank you!!
    
    

    or try

    {xdoxslt:get_variable($_XDOCTX,'env_url')}{ID}
    
  • AS3 pass variable values of external swf loaded in the parent swf format

    Hello

    I'm working on an e-Learning project that uses a main SWF (SWF1) and a second SWF (SWF2) with 2 quizzes in it. Published in the ATMOSPHERE for Desktop and Android, SWF1 and SWF2 are packed together in the Office of AIR or AIR APK exports.

    I use a charger in SWF1 to compose and execute SWF2. What I am having difficulties with, need help, is how to get 2 2 SWF2 quiz scores and load these values (each is a number) return SWF1. Once back in SWF1, they will be written to a string and then displayed in a text box using textbox.text.

    While I searched online and found examples to send variables from parent to child of the SWF file, so far not able to find an example of script understandable/useable AS3 to get variables from child to parent SWF.

    Any help appreciated.

    Best wishes

    The best way to communicate between parent and child SWFs is through events. Send an event to the child with the data to send and intercept the event to the parent level. This flow is common and very easy to handle

  • The export of a variable value of Jython in a Variable of the ODI

    Hello everyone,

    I use ODI for the first time and I have a few simple questions.

    I wrote a Java program 'P' to perform three operations: 'X', 'Y', 'Z '. The program returns a string with the result encoded in JSON format (and never raise an exception).

    Now I have the pot of P.

    In ODI 12 c demo I created with success a procedure with 3 tasks (1 running X, Y of 2nd, 3rd Z). I run P every time a Jython script that loads the jar with some ODI environment options and pass as arguments to the main method.

    At the moment there is executed even if X fails and the Z are executed even if fails. What I need is to check the result of the operation: If the result of X is equal to a certain channel then run Y. If the result of Y is equal to a certain String then run Z.

    That's why I created 3 different procedures, each with a single (jython) task (we run X, a Y, and a Z).

    I created a new package and put in the three procedures.

    My problem is how to connect the three procedures: I need to store the result of an operation and check it before performing the next step.

    I saw that it "Assess the Variables", but how can I store the value in a variable of Jython (string JSON) in a Global Variable ODI?

    It seems that the Options of ODI are unalterable (How to set the value of the variable of Jython Script ODI). Any suggestion?

    I can't use the ODI OS calls. Jython is not strictly necessary.

    Thanks for reading.

    Gianvito

    Oh! Now your example clearly what you want to do then it is much easier. No need to do anything special... just use Jython throughout the whole, since the variables are "persistent session." Like this:

    First proc:

    Second proc:

    The result of the execution:

    Is that what you want?

  • mixed formatting variables in RH7?

    My client has a Submodule with a mixed format name, for example "Sha-BANG"(with the second part in italics in the case who does not appear). I don't see a way of formatting part of a variable in RH7, although I read it is possible in RH8 - does anyone have ideas how to efficiently enter this term throughout the project?

    Hi argus08,

    Formatting (style) is part of the definition of the Variable and is independent of the variable itself, it gives you freedom to have different formatting based on the value, but this feature came in RH 8 and I fear in HR 7, you cannot apply formatting separately on the definitions.

  • Keep persistent variable values

    Hi all

    I'm about to create a random coefficients (FRC) for an Adaptive order blur in LabVIEW. The original design made in MATLAB/SIMULINK and I'm trying to translate functions in LabVIEW to my creations.
    The MATLAB function is then called in Simulink and returns the results. What I'm stuck with, is how PERMANENT is kept in LabVIEW. Consider the following script:

    e = [0.2 0.3];

    current_error = e (1);
    simulation_time = e (2);

    number of persistent;
    persistent previous_error;

    If isempty (count)
    Count = 0;
    end

    If isempty (previous_error)
    previous_error = 0;
    end

    Count = count + 1;

    control_activity = (current_error + previous_error) count;

    previous_error = current_error + previous_error;

    The above script retains the values of the persistent variables (County, previous_error) intact whenever this function is called in Simulink. But in LabVIEW how it's done?
    I'll probably call the same function in LabVIEW in a main loop. Am I supposed to use the shift registers to pass values between iterations?

    It will be the variable persistence?

    There is one post of the same problem in this forum, but the guy there wants to keep intact values using the VI. I, on the other hand, want to keep my values in a jar as soon as my function is called in a loop.

    Help!

    Kind regards.

    NapDynamite wrote:

    The above script retains the values of the persistent variables (County, previous_error) intact whenever this function is called in Simulink. But in LabVIEW how it's done?
    I'll probably call the same function in LabVIEW in a main loop. Am I supposed to use the shift registers to pass values between iterations?

    It will be the variable persistence?

    Yes, using shift registers

  • Build a class variable value

    Hello

    I am trying to initialize a class based on the value of a variable. I know that I can use the class of thinking in Java, but J2ME does not support this.  Is there another way?

    To give you an idea of what I'm trying to do, I have a main object (UiApplication) passed to all initialized screens. Now this main object has a method named getScreenInstance() that can be called by any screen to get an instance of a screen based on the string, they put in the parameter.

    The point of this is so I can push to another screen at any time without having to re - initialize it if it is already initialized. This might be able to do differently, I am new to J2ME (and kinda new to Java as well).

    If there is a different way, I'd like the solution, although always, I would like to know if it is possible dynamicalled load a class and pass parameters to the constructor it is also.

    Thanks in advance

    Apart from the ugliness, what's not with something like:

    public Screen getScreenInstance( String screen_name ) {
      Screen screen = (Screen) this.screen_registry.get( screen_name );
      if ( screen == null ) {
        screen = makeScreen( screen_name );
        if (screen != null) {
          screen_registry.put( screen_name, screen );
        } else {
          // report unrecognized screen name
        }
      }
      return screen;
    }
    
    private Screen makeScreen( String screen_name ) {
      if ( "ScreenA".equals(screen_name) ) return new ScreenA(this);
      if ( "ScreenB".equals(screen_name) ) return new ScreenB(this);
      // etc.
      return null; // unrecognized name
    }
    

    You might even be able to do something with initializers static in the classes of your screen so that the names of class is part of a register before that all instances must be created (although this puts you at the mercy of the arcana of class loaders machinery).

  • The Variable value based on the results of SQL query

    With the help of OBIEE 11.1

    Is it possible to set the value of a variable presentation of the results of a SQL statement?

    Scenario:

    I have 2 topics.

    SubjectArea1

    Text1

    Date1

    SubjectArea2

    Field1

    Field2

    UpdateDate

    I have an analysis that uses only the SubjectArea2.

    Using a dashboard quickly, the user must be able to select Text1 in the other topic area (SubjectArea1).

    Assuming that selection will be stored in a variable of presentation (SelectedText),

    The filter in the analysis should be something like

    Upper UpdateDate to @{SelectedDate}

    How can I set a variable (SelectedDate) using a SQL statement?

    Something like this:

    SELECT "Date1" TO "SubjectArea1" WHERE "Text1" = @{SelectedText}

    So the command prompt text selection should give a date that is used to filter the second review?

    If so:

    The prompt on SA1.textCol

    hidden analysis who is invited on SA1.texCol has SA1.dateCol in the criteria

    Analysis SA2.dateCol is filetered on basis of the results of another analysis (any value analysis hidden SA1.dateCol)

  • Session for Global Variables values

    Hi all

    I am working in Oracle APEX 4.2.5


    My Application configuration:

    (1) we have 2 applications both to the same workspace. Request 1 to authentication and application 2 has no authentication. (We try to keep it as a child of App1 App2).

    Note us have several modules like purchase, sales, finance, we decided to make a Global centralized Application that connects to the wise child module Applications. [Please correct me if my installation is wrong or will cause deployment problems].

    (2) request 1 has the global variable defined with global scope

    (3) the user in application 1 and value, we have a global application variable, and it works very well within the app

    (4) press a button in App1 redirect in the second request and try to refers to the overall application of 1st app variable (but becomes null).


    How to maintain the Session State on the whole of the Application?

    Do we need an installation with a global scope to the second request so application variable?

    Any advice would be great? Thank you very much.


    Kind regards

    Melanie

    What you do should work properly. App 2 from not my guess is that the name of the cookie for authentication does not app 1.

    Go to security for the applications and make sure that the cookie name matches. Then re - test.

    Once the cookie names match app 2 could also have authentication and you will not have to connect again after that you connect to the application 1.

    Jorge

  • weird registry variables values

    I was wondering if someone can explain what is happening with these types of values. It seems to be set in the same way on all our BOD-* _NotificationSettings & DBSS-* _NotificationSettings (just under 300). Here is an example:

    BOD-BlocksCorrupt_NotificationSettings

    Value extended

    false@@PS@@warning@@PS@@lowSeverity@@SS @ [email protected],[email protected], [email protected], [email protected]@ES@@@ES@@@Severity @ @DBType @ instance @ on @InstanceName alarm @Hostname @ host was generated: @ AlarmMessage@@@ES@@@PS@@mediumSeverity@@SS@@@SS@@@ES@@@ES@@@ES@@@PS@@highSeverity@@SS@@@SS@@@ES@@@ES@@@ES@@@PS @.

    There is a rule named DBO - blocks corrupt, but I see no reference to the variable above. I'm guessing that it's used internally but you wonder how he gets generated... and what is the problem with all the @ signs?

    The intensive use of @ must mean the separation in the chain

    Using a method of sharing on the chain it will create in a table with

    The data cartridge use this variable for routing and notifications continued within the administration of database dashboards

  • In vCO how separate you the display of the value of the variable value

    I use Orchestrator 5.5 and I would like to create a way to present a value to the user when they start the workflow, and then set the variable to something different. For example when you select the operating system for your comments, you are supposed to choose VirtualMachineGuestOsIdentifier. It is a little more of the average skills users and quite frankly something I want to keep track of is.


    Is it possible to do something like in HTML? < option value ="winNetEnterpriseGuest">Windows Server 2003, Enterprise Edition<option/option/option>


    Hello

    don't know if you can do more kindly, but how about giving users a drop-down selection fall and correspond to the GuestOSIdentifier with a switch statement in a following script task?

    Tim

Maybe you are looking for