Update essbase variables with OS date

Hi All,
Is there a way to update my substitution variables according to the Operating System date? I am trying to avoid some manual process involved in maintaining the application. I am looking for any solutions out of Hyperion.
Any help is appriciated.
Thanks,
KK

There isn't a way to do this within Hyperion, but it is simple enough to write an external process (korn or bash for Unix, bat or vba for windows) to read the system date, then appropirately set a subvar with a maxl shell call.
Robert

Similar Messages

  • Problem with updating oracle DB with java date thru resultset.updateDate()

    URGENT Please
    I am facing problem in updating oracle database with java date through resultset.updateDate() method. Can anybody help me please
    following code is saving wrong date value (dec 4, 2006 instead of java date jul 4, 2007) in database:
    ResultSet rs = stmt.executeQuery("SELECT myDate FROM myTable");
    rs.first();
    SimpleDateFormat sqlFormat = new SimpleDateFormat("yyyy-mm-dd");
    java.util.Date myDate = new Date();
    rs.updateDate("myDate", java.sql.Date.valueOf(sqlFormat.format(myDate)));
    rs.updateRow();

    I believe you should use yyyy-MM-dd instead of yyyy-mm-dd. I think MM stands for month while mm stands for minute as per
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    (If this works, after spending so much of your time trying to solve it, don't hit yourself in the head too hard. I find running out of the room laughing hysterically feels better).
    Here is a more standard(?) way of updating:
    String sqlStatement=
    "update myTable set myDate=? where personID=?"
    PreparedStatement p1= connection.prepareStatement(sqlStatement);
    p1.setDate(1,new java.sqlDate());
    p1.setInt(2, personID);
    p1.executeUpdate();

  • Define variable with void data type.

    Hi,
    I would like to define a variable and a structure with void data type.
    How could I define it?
    regards.

    HI SijinK,
    Thanks for the reply.
    I want to call some "dll" in the TestStand. In this "dll", function requires some variable of void data type as input.
    e.g.  dll - Test.dll
    Function  - short int Func_a (void var_a, long var_b, void *var_c, custom_struc *var_d)
    I want to call this function in the TestStand. Using "C/C++ Dll" adapter module and "Action" step type, I will call this dll and its function.
    For passing values to this function, I need to define some variable with respective data type.
    Please let me know how could I do this.
    Regards.

  • Essbase Variable with more than a value for use after in Planning forms.

    I want to now if it would be possible to create a variable with more than a value for use after in Planning forms.
    The variable that I want to use is created in Essbase.
    Example:
    &Years = FY08,FY09,FY10

    Hi.
    The only workaround I know for the problem is to create parent in the dimension.
    In your case, create member “planyears”.
    Then you define children that are shard (this are the multiple member for the variables FY08, FY09 etc..)
    Create Essbase sub variable that will have 1 member value “planyears”
    When you use the Sub Variable in form select function “Children” and in that case it will use the member FY08,FY09 etc on the form.
    Limitation: I’m working on version 9.2.0.3 so you can’t create hierarchy in the year dimension, but you can use it in other dimension.
    AE

  • Update new field with existing data programmatically

    I have a requirement to write a code that update an existing lookup field.
    We are running sharepoint 2010. We have a content type, which is used throughout all the sites. The content type has a field called Product, which is a lookup field for all the products we have. The field also contains subproducts. For example, a product
    by name PR1000 has a subproduct PR1010 all in the same drop down menu.
    Now we want to change this grouping and separate them based on product and subproduct. I have created new field called Parent Product (PP) and Child Product(CP).
    I would like to programmatically update the Parent Product field with Product and Child PRoduct field with child product if any. So here is how it works; if an existing item or document has product PR1010, I would to update PP with PR1000 and CP with 1010.
    The problem I am having in order to start this project is the product field is part of every document library and lists and there are 1000s of items with data for product.
    Please help with ideas or suggestions. I am thinking of a feature event receiver, which when activated will automatically update every item with product field not empty.
    Thanks for your help in advance.

    As Bruno suggested ,if its on time activity and on the all site then so go with Powershell 
    script. use feature event receiver when it require on the selected site and if this require to extend
    other sites so that contol will be at your end,else you need to again modified the powershell script.
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Update OnSelect property with excel data

    Hello
    I hope you can follow me.
    What I am trying to do is to create a scrollable menu using a custom gallery.
    I have created an excel spreadsheet table with 2 columns. Name,onselectproperty
    Under name I have the name of the Menu item and under onselectproperty I have the behaviour I want for that menu item i.e. Launch("www.google.com").
    I created a custom gallery and added a button to it, I then set the Text property of this to ThisItem!Name which works and updates each button with the name of the Menu Item.
    However when I try to use the same logic on the onselect property using ThisItem!onselectproperty nothing happens.
    If I use the same reference in a label the onselect statement appear correct.
    I am not sure if this is even possible but any input would be appreciated.
    Ronan

    Hi,
    This is not currently supported. Having said that, if you always use the Launch command, your second column could only contain the URL ("www.google.com").
    Alternatively, if there is a subset of commands you use, you could codify the commands and use a If statement.
    If(onselectproperty="Launch", Launch(Target), onselectproperty="Collect", Collect, ...)
    Olivier

  • Update Info record with PO data

    Hi,
    I have the material configured no purchase order unit of measure and Variable Purchase Order Unit Active with the value 1.
    When I create the first PO a Info record is created and in the general data the purchase order unit is set with one used on that PO.
    When I create a new PO the purchase order unit from the info record is copied to the PO. If I change that unit on the creation of the PO I would like to have it changed in the Info record but this is not the behavior. That field remains unchanged unless I change it manually in the Info record.
    Is there any standard way to make it updated with the creation of PO's?
    Thanks,
    Nelson Ribeiro.

    Hi,
    You can find control of info-update indicator  in following path, where it update automatically.You can set for own  data by assigning EVO with 01{Goto from menu bar---system-> user profile-->own data>Goto parameters---> enter parameter id as EVO parameter value as 01}
    SPRO> MM> Purchasing-> Environment  -> Define default values for buyers-->Settings for Default Values
    You can view Entries
    01     Default values for group 1
    02     Default values for group 2
    Regards,
    Biju K

  • Function Module to Update Shipment Document with FURTHER DATES

    Hi All,
    i need to update (create an event entry) with the 'Begin Plan Date' and 'End Plan Date' of one Event in the 'FURTHER DATES' TAB
    (2nd Tab) of the Shipment Document. I got to do this using the separate program after the shipment gets created from external system in ECC.
    Any ideas on how to do it? the function modules belong to the function group
    TSEG.. but am not sure which function module can cater my requirement..  or can we do it with a BDC call.
    Appreciate ur early reply...
    Regards,
    Leona

    hi,
    YOu can use fm 'HR_99S_date_plus_time_unit'.
    hope it helps
    regards,
    pawan

  • How to update a table with huge data

    Hi,
    I have a scenario where I need to update tables that are having huge data (each table is having more than 10,00000)
    I am writing this update in PLSQL block.
    Is there any way to improve the performance of this update statement? Please suggest...
    Thanks.

    user10403630 wrote:
    I am storing all tables and columns that needs to be updated in tab_list and forming a dynamic qry.
    for i in (select * from tab_list)
    loop
    v_qry := 'update '||i.table_name||' set '|| i.column_name ' = '''||new_value||'''' ||' where '||i.column_name = ''||old_value||'''';
    execute immediate v_qry;
    end loop;Sorry to say so but this code is aweful!
    Well the only thing to make this even more slow would be to add a commit inside the loop.
    Some advices. But I'm not sure which one works in your case.
    The fastest way to update a million rows is: write a single update statement. On typical systems this should only run for like a couple of minutes.
    if you need to update several tables then write a single update for each table.
    If you have different values that need to be updated then find a way how to consider those different values in a single update or merge statement. Either by joining another table or by using some in-lists.
    e.g.
    update myTable
    set mycolumn = decode(mycolumn
                                     ,'oldValue1','newvalue1'
                                     ,'oldValue2','newvalue2'
                                     ,'oldValue3','newvalue3')
    where mycolumn in ('oldValue1','oldvalue2','oldvalue3'....);If you need to do this in pl/sql then
    1) use bind variables to avoid hard parsing the same statement again and again
    2) use bulk binding to avoid pl/sql context switches

  • Update text fields with xml data based on DDL selection of an ID number

    Hi guys,
    this one should be straight forward, but I cant seem to find a straight forward answer.  In a nutshell:
    XML file contains ID, Name, Location (so far 3 records in sample xml file)
    Form contains a Dynamic Drop down list to allow selection of ID and text fields to display the associated name and location of that ID.  The binding of the Drop down works fine, however I need the other fields to update to the associated name and location when different ID's are selected.  I assume I'll need some sort of exit event on the drop down list to update the other fields with the Name and location of the ID selected, but I dont know enough to have a stab at it.
    please, please, please help, Im starting to pull my hair out.
    James.

    Hi James,
    This would depend on the structure of your XML but assuming you have something like;
    <Data>
                <Item>
                            <Id>1</Id>
                            <Name>Name1</Name>
                            <Location>Location1</Location>
                </Item>
                <Item>
                            <Id>2</Id>
                            <Name>Name2</Name>
                            <Location>Location2</Location>
                </Item>
                <Item>
                            <Id>3</Id>
                            <Name>Name3</Name>
                            <Location>Location3</Location>
                </Item>
    </Data>
    Then in the change event of your dropdown (your could use the exit event but then value might not have changed so would be performing unnecessary processing) add the following code.
    var itemGroup = $data.Data.resolveNode("Item.(Id.value === '"+xfa.event.change+"')");
    Name.rawValue = itemGroup.Name.value;
    Location.rawValue = itemGroup.Location.value;
    The xfa.event.change will be the value selected, the resolveNode will return the Item with the matching Id, and then it is just a matter of assigning it to your form fields.
    Hope this gets you started.
    Regards
    Bruce

  • Updating a JPanel with new data, using CardLayout

    Hi,
    I'm using a CardLayout to change between JPanels.
    I have 2 JPanels: panel1, panel2; 2 JButtons: backButton, nextButton;
    I also have 1 JTable - table1 - which get it's info from a database.
    I add nextButton and table1 to panel1, and add backButton to panel2.
    I add panel1 and panel2 to the CardLayout, and of course I add the Cardlayout to the JFrame and so on.
    When I start the application I get the panel1 with a table filled up from the DB. I then press the nextButton and get the panel2 visible.
    Problem:
    My problem now is how to do when I press the backButton so that the application checks the DB and updates the table1.
    I make a ActionListener to the backButton, which makes the panel1 visible again, but it does not update the table1 from the DB.
    How do I do that??
    Thx. for all answers!!
    /bogger

    of course it will be the same - you must call the database again.
    if you just copy and paste the code, that fills your database with data where you make the panel visible again, it'll work
    (of course it will be better to create a method to update the table, not just paste the code)

  • Process Instance : Update Process Variables with Java API

    Hi,
    I need to set a lot of process variables in a java service that is executed in a process but can't find the way to do that.
    Is it possible to modify the value of a variable from a process instance with the JAVA API ?
    I didn't find this type of function (for example with the ProcessManager API).
    Thanks,
    Will

    Could you place your logic in an executeScript service?
    You can use native Java there.
    I have had good luck getting values in and out of process varaibles with the get... set...
    this is a very simple example.
    import com.adobe.workflow.pat.service.*;
    String allowLogging = patExecContext.getProcessDataStringValue("/process_data/@allowLogging");
    patExecContext.setProcessDataStringValue("/process_data/@errorActivity", "Save Doc XML");
    patExecContext.setProcessDataStringValue("/process_data/@errorMessage", "SystemException");
    if (allowLogging.equalsIgnoreCase("true")) {
    System.out.println("@@@@ Save Doc XML @@@@");
    System.out.println("@@@@ SystemException @@@@");
    }; // END allowLogging

  • Updating DPAYH-VALUT with old date during FPY1 run

    Hi All,
    The requirement is, while generating Disbursement document through FPY1 transaction i need to populate the DPAYH-VALUT with some other value. As of now system populating the current date in this field.
    Can any body help me which FQ Event we can use to achieve this?
    Appreciate your help.
    Regards,
    Veera.

    Any thoughts on this?
    Regards,
    Veera.

  • Updating Flash Variables with JavaScript

    I am looking to update a Flash Variable that I created in my Xcelsius Component by using JavaScript.
    I would like to know if this is possible and if so an example would be great.
    Thanks in advance

    Hi Christopher,
    This is possible.  To get a brief idea of what FlashVars look like in the HTML:
    1) In Xcelsius, add a FlashVar connection and bind it to a range
    2) Export your project to HTML
    3) Open the HTML in notepad and notice the FlashVar properties in the Object and Embed tags.
    Basically your JavaScript  will control the variable that go into your FlashVar parameters. I have attached a basic example for you.
    In this example, the value input updates the flash variable which is linked to the gauge component.
    Best regards,
    Jon Teopaco

  • How do i update a JTable with new data?

    Hey
    I have a JTable where the data of some football players are shown. Name, club, matches and goals. What i want is to change the data in
    the JTable when i click a button. For example each team in a league has its own button, so when i click the teams button, JTable has
    data of that teams players.
    Here is the code i have atm, there isnt anything on how to change the data, because i dont know where to start, plz point me in somekind of direction:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package test;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.ImageIcon;
    import javax.swing.JTable;
    import javax.swing.JButton;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    * @author Jesper
    public class Main extends JFrame implements ActionListener {
        private Players players;
        private JTextArea output;
        private JScrollPane scrollPane2;
        private JButton button1, button2;
        private String newline = "\n";
        private int club = 1;
        public Main(){
            players = new Players();
        public JMenuBar createMenuBar(){
            JMenuBar menuBar = new JMenuBar();
            JMenu menu = new JMenu("File");
            menu.setMnemonic(KeyEvent.VK_A);
            menu.getAccessibleContext().setAccessibleDescription("The only menu in this program that has menu items");
            menuBar.add(menu);
            // add menuitems/buttons
            JMenuItem menuItemNew   = new JMenuItem("new");
            menuItemNew.setActionCommand("1");
            menuItemNew.addActionListener(this);       
            JMenuItem menuItemOpen   = new JMenuItem("Open");
            JMenuItem menuItemQuit   = new JMenuItem("Quit");
            menuItemQuit.setActionCommand("2");
            menuItemQuit.addActionListener(this);
            // add to menu
            menu.add(menuItemNew);
            menu.add(menuItemOpen);
            menu.add(menuItemQuit);
            return menuBar;
        public void actionPerformed(ActionEvent e){
            String s;
            if ("Silkeborg IF".equals(e.getActionCommand())){
                club = 1;
                s = e.getActionCommand();
                output.append(s + newline);
                button1.setEnabled(false);
                button2.setEnabled(true);
            } else{
                club = 2;
                s = e.getActionCommand();
                output.append(s + newline);
                button1.setEnabled(true);
                button2.setEnabled(false);
        //Quit the application.
        protected void quit() {
            System.exit(0);
        public Container createContent(){
            JPanel contentPane = new JPanel(new GridLayout(3,1));
            ImageIcon icon = createImageIcon("middle.gif", "a pretty but meaningless splat");
            JTable table = new JTable(players.showPlayers(club));
            //Create the first label.
            button1 = new JButton("Silkeborg IF");
            button1.setToolTipText("Klik her for at se Silkeborg IF");
            button1.addActionListener(this);
            button1.setActionCommand("Silkeborg IF");
            //Create the second label.
            button2 = new JButton("FC Midtjylland");
            button2.setToolTipText("Klik her for at se FC Midtjylland");
            button2.addActionListener(this);
            button2.setActionCommand("FC Midtjylland");
            //Create a scrolled text area.
            output = new JTextArea(5, 30);
            output.setEditable(false);
            scrollPane2 = new JScrollPane(output);
            //Add stuff to contentPane.
            contentPane.add(button1);
            contentPane.add(button2);
            contentPane.add(table);
            contentPane.add(scrollPane2, BorderLayout.CENTER);
            return contentPane;
        protected static ImageIcon createImageIcon(String path,
                                                   String description) {
            java.net.URL imgURL = Main.class.getResource(path);
            if (imgURL != null) {
                return new ImageIcon(imgURL, description);
            } else {
                System.err.println("Couldn't find file: " + path);
                return null;
        public static void createGUI(){
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            Main main = new Main();
            frame.setJMenuBar(main.createMenuBar());
            frame.setContentPane(main.createContent());
            frame.setSize(500, 500);
            frame.setVisible(true);
         * @param args the command line arguments
        public static void main(String[] args) {
            createGUI();
    }

    ooohh sorry... i posted the wrong code :S
    Here is the correct code:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package test;
    import java.util.HashMap;
    import java.util.Set;
    import javax.swing.table.*;
    * @author Jesper
    public class Players {
        HashMap<Player, Stats> players;
        public Players(){
            players = new HashMap<Player, Stats>();
            addPlayer();
        public void addPlayer(){
            //Silkeborg IF
            players.put(new Player("Martin ?rnskov", 1), new Stats(19, 3, 1));
            players.put(new Player("Thomas Raun", 1), new Stats(23, 6, 0));
            players.put(new Player("Jimmy Mayasi", 1), new Stats(26, 26, 3));
            players.put(new Player("Lasse J?rgensen", 1), new Stats(33, 0, 0));
            //FC Midtjylland
            players.put(new Player("Frank Kristensen", 2), new Stats(19, 3, 1));
            players.put(new Player("Thomas R?ll", 2), new Stats(23, 6, 0));
            players.put(new Player("Simon Poulsen", 2), new Stats(26, 26, 3));
            players.put(new Player("Magnus Troels", 2), new Stats(33, 0, 0));
        public DefaultTableModel showPlayers(int club){
            String[] columNames = {"Spiller", "Klub", "Kampe", "M?l", "R?de kort"};
            //Object[][] data = {{"Martin ?rnskov", 19, 3, 1}, {"Thomas Raun", 23, 6, 0}};
            Set<Player> keys = players.keySet();
            Object[][] data = new Object[keys.size()][columNames.length];
            int i = 0;
            for(Player player : keys){
               if(player.getClub() == club){
                   data[0] = player.getName();
    data[i][1] = player.getClub();
    data[i][2] = players.get(player).getMatches();
    data[i][3] = players.get(player).getGoals();
    data[i][4] = players.get(player).getRedCards();
    i++;
    DefaultTableModel table = new DefaultTableModel(data, columNames);
    return table;

Maybe you are looking for

  • Installing adobe photoshop cs6

    Im trying to install adobe photoshop cs6 and it says my serial number is invalid

  • Consolidate col2 on basis of col1

    I have one table containing data col1 col2 1 a 2 a 1 b 3 d 1 e I want output as 1 a,b,e 2 a 3 d Plz help. Thnax in advance.

  • ERROR IN NUMBER RANGE when doing profit center distribution

    hi    iam getting this error while doing distribution in profit center accounting , can anyone help me with this ERROR: Diagnosis An error occurred during document number determination. No range was found for number range object GL_LOCAL, sub-object

  • How to hide search box in subgrid in crm 2013

    Hi, I want to hide search box in subgrid. When I click (+) in subgrid then show search box. I dont want to show search box. When I click (+) for new record then new form will open. Please tell me how to remove search box from subgrid in crm 2013

  • Error while using Nested AM

    Hi, I am using jdev 11.1.1.6.2. I have 2 AMs in my project called as ComplianceAssocAM and MextUiAM. I have nested MextUiAM inside ComplianceAssocAM using: <AppModuleUsage     Name="MextUiAMAssoc1"     FullName="oracle.sysman.core.mext.uimodel.applic