How to get the variable substitution essbase in ODI
Hi allI have a problem that I need to get the variable substitution of Essbase /EAS to work on a SQL in ODI.
How can I do in ODI?
Thank you all for...
Thomas
Hello
If you read my blog:-http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
In the post, there is a section on the recovery of the essbase substitution variables and their use in ODI.
See you soon
John
http://John-Goodwin.blogspot.com/
Tags: Business Intelligence
Similar Questions
-
How to get the variable 'dn' in a script
Hello
I have a problem, get the variable "dn" of the script is not a "public" variable, but I'm able to see in the log file. I bet it's in an object java somewhere - I don't know how to access it. No one knows how to get it. I have attached some of the newspaper:)
CN = 8485 [5-6] XX, dn = 8485601 = 9812 cgn, ani = null, dnis = null, clid = null, atype = FORWARD_ALL lrd = 9817, ocn = 9817,
I have a similar problem but I did not find the repo. package... Where?
Thank you
-
PowerCLI Invoke-VMScript re - ip guest - how to get the variable hostname comments
I run the following script as a task Post-Power-we a re - ip our VMs after that MRS. them rocking. I was able to run this script successfully without the variable hostname of comments (in the test, he runs a script by test VM with the hostname assigned...), but I'm stumped on how to get comments variablized according to the machine's host name works on, it will take the host name and use it in the GuestUser variable and the command - VM. I tried the bold part, but it does not work.
$srv = Connect-VIServer 10.0.0.10 - administrator of the username-password password
$Hostname = (get-wmiobject win32_computersystem). Name
$script = "%windir%\system32\cmd.exe/c c:\dr\drIPsettings.bat".
$HostUser = "root".
$HostPassword = "password"
$GuestUser = ' $Hostname\Administrator '.
$GuestPassword = "password"
$ScriptType = "bat".
SE connect-VIServer 10.0.0.10 - Session $srv. SessionID
Invoke-VMScript - ScriptText $script - VM $Hostname - HostUser $HostUser - HostPassword $HostPassword - GuestUser $GuestUser - GuestPassword $GuestPassword - ScriptType $ScriptType
Thank you!
How you code the - VM on the Invoke-VMScript cmdlet parameter, it seems that Displayname of the guest is the same as the host name.
Can't you just use a loop on guests and then use the displayname property
$script = "%windir%\system32\cmd.exe /c c:\dr\drIPsettings.bat" $HostUser = "root" $HostPassword = "password" $GuestPassword = "password" $ScriptType = "bat" Get-VM | %{ $GuestUser = $_.Name + "\Administrator" Invoke-VMScript -ScriptText $script -VM $_ -HostUser $HostUser -HostPassword $HostPassword -GuestUser $GuestUser -GuestPassword $GuestPassword -ScriptType $ScriptType }
You can encode the Get - VM with more specific selection criteria or use a Where-Object after the Get - VM.
____________
Blog: LucD notes
Twitter: lucd22
-
How to use variable Substitution Essbase in ODI
Hello
Can someone help me please how to use void var Essbase in ODI?
I created an interface to load data from text to planning. In the mapping, to the Point of view, I gave the necessary dimensions which is "years". In Essbase, we set a variable called CurrYr which
We want to use in the view. So, I added a line like this in the map
'Work', 'Budget', 'CC1', '#sYearValue '. The sYearValue is used to extract the void var Essbase before loading the planning data. I have followed the blog for void var post below (John has been very kind in showing many examples of ODI, link below is one of them).
[http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html]
Whenever I run the Interface, it fails with the error "ODI-17506: Variable has no value: XXXXX.sYearValue.
Thanks in advance!
PMThis line should print the values in the agent log, see log
System.out.println ("current year =" + sYearValue + "current period =" + sPerValue);
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to get the secondary variable
Hello
Can I know how to get the variable of the Secondary VI?
Please see my VI, when I run the test in high school, I can't any variable in the indicator "get all the control values.
Is there a wrong?
Thank you.
Try this:
-
How to get the list of active users in Essbase 6.5.6
Hi gurus,
How to get the list of active users in Essbase version 6.5.6
I can't find any Esscmd list of active users...
I used the command LISTLOGINS in ESSCMD, but it did not help me...
pls suggest me an approach to find the list of active users.
Thanks in advance...
Hi guru,.
When you connect to the application, you will find the security option---> connect you will find active use in the ESSBASE.
If you need the list of users in the use of ESSBASE that recommends essmsh
go for the race---> essmsh---> login user server use this tribute
(1) session view all this;
If you want to export the active users usebelow congratulate.
2)
spool to 'D:\suresh.txt ';
poster session;
-
How to get the value of a variable to bind a client method of the AM?
Hello
I have a VO based on a variable binding. This binding variable is associated with an element on the page. When the user fills the element that the binding variable is written, the query is executed. This method works.
What I want now is the following. With a second button, the user runs an exported AOS action method. In this method, I want to get the value of the binding variable that has been put forward.
How would I do that?You can get the variables bind currently set on the object view as follows:
catServiceDurationsVO has the reference to the VO
VariableValueManager vm = null;
VM = catServiceDurationsVO.ensureVariableManager ();
System.out.println (VM.getVariableValue ("BindVariable"));Thank you
Nini -
to BIND the variable SUBSTITUTION
I have a code where I find dates START and end range for the past 3 years, the beginning Date must start on a Sunday and the end Date is at the end on Saturday using the weird system they have here:-)
the end usable VARIABLE must be in YYYYMMDD format as number, because that's how they set up Date here... can anything about...
So I thought to all the Dates, performing a combination of Variables of SUBSTITUTION AND LINKING, why I do like that it is because
I received an error when I used just the variables SUBSTITUTION (maximum 240 characters used on the START DATE of the year2, in)
switching to this, the error has disappeared), well that's what I thought he'll fix it.
But now, when I try to use and VARIABLE in SQL, I get an error that it cannot use BIND variables, so try to pass values to a SUBSTITUTION
afin_que this error disappears) - unless there is a better way?
If there is a better way to stay maybe everything inside SUBSTITUTION and don't imply any LINK, maybe it would be better, if you guys know a way around the 240 character error...
:-)
My variables are:
-find YEAR 1
SET LY_END_DATE_NUM = "TO_NUMBER (TO_CHAR (NEXT_DAY ((SYSDATE-7), 'SATURDAY'), 'YYYYMMDD'));
variable BIND_LY_END_DATE_N number;
run: BIND_LY_END_DATE_N: = & LY_END_DATE_NUM;
PRINT BIND_LY_END_DATE_N;
SET LY_START_DATE = ' TO_DATE (: BIND_LY_END_DATE_N, 'yyyy-mm-dd')-363;
SET LY_START_DATE_NUM = "TO_NUMBER (TO_CHAR (& LY_START_DATE, 'YYYYMMDD'));
variable BIND_LY_START_DATE_N number;
run: BIND_LY_START_DATE_N: = & LY_START_DATE_NUM;
PRINT BIND_LY_START_DATE_N;
-find YEAR 2
SET YRS2_END_DATE = ' TO_DATE (: BIND_LY_START_DATE_N, 'yyyy-mm-dd')-1;
SET YRS2_END_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS2_END_DATE, 'YYYYMMDD'));
variable BIND_YRS2_END_DATE_N number;
run: BIND_YRS2_END_DATE_N: = & YRS2_END_DATE_NUM;
PRINT BIND_YRS2_END_DATE_N;
SET YRS2_START_DATE = ' TO_DATE (: BIND_YRS2_END_DATE_N, 'yyyy-mm-dd')-363;
SET YRS2_START_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS2_START_DATE, 'YYYYMMDD'));
variable BIND_YRS2_START_DATE_N number;
run: BIND_YRS2_START_DATE_N: = & YRS2_START_DATE_NUM;
PRINT BIND_YRS2_START_DATE_N;
-find YEAR 3
SET YRS3_END_DATE = ' TO_DATE (: BIND_YRS2_START_DATE_N, 'yyyy-mm-dd')-1;
SET YRS3_END_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS3_END_DATE, 'YYYYMMDD'));
variable BIND_YRS3_END_DATE_N number;
run: BIND_YRS3_END_DATE_N: = & YRS3_END_DATE_NUM;
PRINT BIND_YRS3_END_DATE_N;
SET YRS3_START_DATE = ' TO_DATE (: BIND_YRS3_END_DATE_N, 'yyyy-mm-dd')-363;
SET YRS3_START_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS3_START_DATE, 'YYYYMMDD'));
variable BIND_YRS3_START_DATE_N number;
run: BIND_YRS3_START_DATE_N: = & YRS3_START_DATE_NUM;
PRINT BIND_YRS3_START_DATE_N;
Hello
Kodiak_Seattle wrote:
I have a code where I find dates START and end range for the past 3 years, the beginning Date must start on a Sunday and the end Date is at the end on Saturday using the weird system they have here:-)
the end usable VARIABLE must be in YYYYMMDD format as number, because that's how they set up Date here... can anything about...
So I thought to all the Dates, performing a combination of Variables of SUBSTITUTION AND LINKING, why I do like that it is because
I received an error when I used just the variables SUBSTITUTION (maximum 240 characters used on the START DATE of the year2, in)
switching to this, the error has disappeared), well that's what I thought he'll fix it.
But now, when I try to use & VARIABLE in SQL, I get an error that it cannot use BIND variables, so try to pass values to a SUBSTITUTION
afin_que this error disappears) - unless there is a better way?
If there is a better way to stay maybe everything inside SUBSTITUTION and don't imply any LINK, maybe it would be better, if you guys know a way around the 240 character error...
:-)
My variables are:
-find YEAR 1
SET LY_END_DATE_NUM = "TO_NUMBER (TO_CHAR (NEXT_DAY ((SYSDATE-7), 'SATURDAY'), 'YYYYMMDD'));
variable BIND_LY_END_DATE_N number;
run: BIND_LY_END_DATE_N: = & LY_END_DATE_NUM;
PRINT BIND_LY_END_DATE_N;
SET LY_START_DATE = ' TO_DATE (: BIND_LY_END_DATE_N, 'yyyy-mm-dd')-363;
SET LY_START_DATE_NUM = "TO_NUMBER (TO_CHAR (& LY_START_DATE, 'YYYYMMDD'));
variable BIND_LY_START_DATE_N number;
run: BIND_LY_START_DATE_N: = & LY_START_DATE_NUM;
PRINT BIND_LY_START_DATE_N;
-find YEAR 2
SET YRS2_END_DATE = ' TO_DATE (: BIND_LY_START_DATE_N, 'yyyy-mm-dd')-1;
SET YRS2_END_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS2_END_DATE, 'YYYYMMDD'));
variable BIND_YRS2_END_DATE_N number;
run: BIND_YRS2_END_DATE_N: = & YRS2_END_DATE_NUM;
PRINT BIND_YRS2_END_DATE_N;
SET YRS2_START_DATE = ' TO_DATE (: BIND_YRS2_END_DATE_N, 'yyyy-mm-dd')-363;
SET YRS2_START_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS2_START_DATE, 'YYYYMMDD'));
variable BIND_YRS2_START_DATE_N number;
run: BIND_YRS2_START_DATE_N: = & YRS2_START_DATE_NUM;
PRINT BIND_YRS2_START_DATE_N;
-find YEAR 3
SET YRS3_END_DATE = ' TO_DATE (: BIND_YRS2_START_DATE_N, 'yyyy-mm-dd')-1;
SET YRS3_END_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS3_END_DATE, 'YYYYMMDD'));
variable BIND_YRS3_END_DATE_N number;
run: BIND_YRS3_END_DATE_N: = & YRS3_END_DATE_NUM;
PRINT BIND_YRS3_END_DATE_N;
SET YRS3_START_DATE = ' TO_DATE (: BIND_YRS3_END_DATE_N, 'yyyy-mm-dd')-363;
SET YRS3_START_DATE_NUM = "TO_NUMBER (TO_CHAR (& YRS3_START_DATE, 'YYYYMMDD'));
variable BIND_YRS3_START_DATE_N number;
run: BIND_YRS3_START_DATE_N: = & YRS3_START_DATE_NUM;
PRINT BIND_YRS3_START_DATE_N;
Let me make sure I understand the problem.
One year, in this problem, is exactly 364 days.
You want the year that ended on the most recent Saturday (otherwise said, the year ending Saturday between 6 days ago and today) and two years ago.
You want the first date in each of those years and the last date each year, in the format YYYYMMDD.
Is this fair?
Here's a way to define variables of substitution (with names like year_1_start):
COLUMN y1_start new_value by year_1_start
COLUMN y1_end new_value by year_1_end
COLUMN y2_start new_value by year_2_start
COLUMN y2_end new_value by year_2_end
COLUMN y3_start new_value by year_3_start
COLUMN y3_end new_value by year_3_end
WITH got_y1e AS
(
SELECT NEXT_DAY (SYSDATE - 7 'SATURDAY') AS y1e
OF the double
)
SELECT TO_CHAR (y1e + 1 - (364 * 3), 'YYYYMMDD') AS y3_start
, TO_CHAR (y1e - (364 * 2), 'YYYYMMDD') AS y3_end
, TO_CHAR (y1e + 1 - (364 * 2), 'YYYYMMDD') AS y2_start
, TO_CHAR (y1e - 364, 'YYYYMMDD') AS y2_end
, TO_CHAR (y1e + 1-364, 'YYYYMMDD') AS y1_start
, TO_CHAR (y1e, 'YYYYMMDD') AS y1_end
OF got_y1e
;
If you prefer that bind variable, write an anonymous PL/SQL block and use the same logic to 6 variables.
-
How to get the number of line of a multi-line string
It seems that this Panel of string does not provide the tool to get the chain line number,
Does anyone have the same experience?
so...
How to get the line number of a variable string?
Number of lines
-
using PostDelayedCall how to get the value passed through void * callbackData?
Can someone tell me how to get the data passed through void * callbackData?
The following code, panel_ptr has the right address but still contains zero.
void CVICALLBACK value_changed (void * callbackData)
{
int * panel_ptr;
panel_ptr = callbackData;
calculate_new_value (* panel_ptr);
}int sign;
Panel = 2;
PostDelayedCall (value_changed & Panel, 0.2);
The problem is using the callbackData parameter if it is a pointer, it must be a pointer to something which is still topical at the moment that the callback executes. That is to say, you cannot pass the pointer to a local variable in callbackData as when the callback executes the pointer is no longer valid. You can switch from its value, instead, in this way:
... SomeFunction)
{
int sign;
...
Panel = 2;
PostDelayedCall (value_changed, (void *) Panel, 0.2);
...
}
void CVICALLBACK value_changed (void * callbackData)
{
int panel_ptr;
panel_ptr = (int) callbackData;calculate_new_value (panel_ptr);
return;
}There are many discussions on the forums on callbackData parameter that you might want to read.
-
How to get the battery level and status in the cpp file?
Hi all
BatteryInfo class so I can I know how to get the battery level and the State in .cpp class?
Hi Benecore,
I have Add method below,
#include
But I only variable BatteryInfoPrivate not get variable BatteryInfo. You can also check on your side.
So let me know how to get batteryInfo instance?
-
How to get the element selected listfield and goto next page?
Assalaamualikum
I try parsing the XML from a url and show in listfield.
problem:
How to get the selected item and passing the variable and than goto next page?
my code:
package parsepack;
import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;Import javax.microedition.io.Connector;
Import javax.microedition.io.StreamConnection;Import net.rim.device.api.system.Bitmap;
Import net.rim.device.api.system.Display;
Import net.rim.device.api.ui.DrawStyle;
Import net.rim.device.api.ui.Field;
Import net.rim.device.api.ui.FieldChangeListener;
Import net.rim.device.api.ui.Graphics;
Import net.rim.device.api.ui.Manager;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.ListField;
Import net.rim.device.api.ui.component.ListFieldCallback;
Import net.rim.device.api.ui.container.MainScreen;
Import net.rim.device.api.ui.container.VerticalFieldManager;
Import net.rim.device.api.xml.parsers.DocumentBuilder;
Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;to import org.W3C.DOM.document;
Import org.w3c.dom.Node;
Import org.w3c.dom.NodeList;extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
{Public Shared Sub main (String [] args)
{
xmlparsing app = new xmlparsing();
app.enterEventDispatcher ();
}public long mycolor;
Connection _connectionthread;
private static ListField _list;
private static Vector listElements is new Vector();.
public display display = new MainScreen();
MainManager VerticalFieldManager;
VerticalFieldManager subManager;public xmlparsing()
{
Super();
pushScreen (screen);final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");
mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
{public void paint (Graphics graphics)
{
graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);Super.Paint (Graphics);
}};
subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
{
protected void sublayout (int maxWidth, maxHeight int)
{
int displayWidth = Display.getWidth ();
int displayHeight = Display.getHeight ();Super.sublayout (displayWidth, displayHeight);
setExtent (displayWidth, displayHeight);
}
};Screen.Add (mainManager);
_list = new ListField()
{
public void paint (Graphics graphics)
{
graphics.setColor ((int) mycolor);
Super.Paint (Graphics);}
};
myColor = 0x00FFFFFF;
_list. Invalidate();
_list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
_list.setRowHeight (50);
_list.setCallback (this);
mainManager.add (subManager);
listElements.removeAllElements ();
_connectionthread = New Connection();
_connectionthread. Start();
}protected boolean navigationClick (int status, int time)
{
Try
{
Here, go to another screen if you need.}
catch (System.Exception e)
{
System.out.println ("Exception:-: navigationClick()" + try ());
}
Returns true;
}private class login extends thread
{
Public connection()
{
Super();
}public void run() {}
Doc document;
StreamConnection conn = null;
InputStream is = null;
try {}Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
docBuilderFactory.setIgnoringElementContentWhitespace (true);
docBuilderFactory.setCoalescing (true);
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
docBuilder.isValidating ();
is = conn.openInputStream ();
doc = docBuilder.parse (is);
doc.getDocumentElement () .normalize ();
List of NodeList = doc.getElementsByTagName ("ID");
for (int i = 0; i)< list.getlength();="" i++)="">
Node node = list.item (i) .getFirstChild ();
listElements.addElement (textNode.getNodeValue ());
}
} catch (Exception e) {}
System.out.println (try ());
} {Finally
If (is! = null) {}
try {is.close ();
} catch (IOException ignored) {}
} If (conn! = null) {}
Try {conn.close () ;}
catch (IOException ignored) {}
}} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
public void run() {}
_list. SetSize (listElements.Size ());
subManager.add (_list);
Screen.Invalidate ();
}
});
}}
' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
{
Your string = (String) listElements.elementAt (index);
int yPos = 0 + y;
g.drawLine (0, yPos, w, yPos);
g.drawText (, 5, 15 + y, 0, w);
}public {get {Object (ListField list, int index)
{
Return listElements.elementAt (index);
}
public int indexOfList (String prefix, ListField list, int, string)
{
Return listElements.indexOf (prefix, string);
}
public int getPreferredWidth (ListField list)
{
Return Display.getWidth ();
}
public final void insert (String toInsert, int index) {}
listElements.addElement (toInsert);
}' Public Sub fieldChanged (field field, int context) {}
}
}Thank you.
I told you that replace the navigationclick() method where initialize you your listfield
as I think that changing your code and then answer me
_list = new ListField() { protected boolean navigationClick(int status, int time) { Dialog.inform("hi"); return true; } public void paint(Graphics graphics) { graphics.setColor((int) mycolor); super.paint(graphics); } };
-
How to get the current timestamp in C++ to the BB10 project
Please help me how to get the current timestamp in C++. Thanks for your help!
Following your suggestion,
QTime is only for a day. http://developer.BlackBerry.com/Cascades/reference/QTime.html#details
I found "QDateTime" of references of the API: http://developer.blackberry.com/cascades/reference/qdatetime.html#toTime_t
QDateTime = now QDateTime::currentDateTime();
timestamp long = now.toTime_t ();But I got an error. I searched but no results are clear:
-variable 'QDateTime now' initializer has but
incomplete type
-type incomplete "QDateTime" used in the nested name
specifier ofI am a newbie. So thank you for your help
-
Hi all
We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.
How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?
We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.
Any idea?
Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)
Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html
Dario
-
How to get the fnd_profile.value in the host program
Hi all
How to get the FND_PROFILE. VALUE('ORG_ID') in the host program.
I loved not below, but it failed.
v_return =' $ORACLE_HOME/bin/sqlplus - s $FCP_LOGIN < < END
set pagesize 0
trigger the echo
fnd_profile. Value ('ORG_ID');
EXIT;
END '
echo $v_return
but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
Kind regards
UVA
> but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
.. .who is the same thing that will happen if you run SQL * more and type "fnd_profile.value...". »
Assuming that fnd_profile.value is a function, you must select from the something (say double) or assign to a variable.
Maybe you are looking for
-
I downloaded Firefox 23 worm and it appeared that a new add-on came with it is called the first Page. I discovered that it was actually malware. I managed to get rid of it by going to: config, but now I have a new problem. There is a tab open, I can'
-
Jitter in response to signal generator of digital dashboard by using trigger nor tclk with digitizer
I've written a VI that uses NEITHER tclk to synchronize a generator (PXI-5422 named FGEN1) and a digitizer (PXI-5122 named DIGITIZER1). There is also a clock card TIMING3 generating a digital camera.
-
When you try to upgrade my IncrediMail this message appears: Error 2738. Could not access VBScript Runtime for custom action.
-
Windows Vista backup and restore: no path to write the disc label
Original title: Back-up-Windows Vista Automatic backup on windows vista provides a label to write on the dvd in the external disk drive. There is no pop-up window to indicate where to write that the label - so fails it AutoSave. When I insert a blank
-
PROBLEM: ACTION CENTER > SECURITY > USER ACCOUNT CONTROL FREEZES AND REMAINS OFF - I CAN'T CHANGE THE UAC LEVEL. When access to the center of the Action (Windows 7-32 bit) > Security > UNDER USER ACCOUNT CONTROL IS OFF > said UAC will be NEVER NOTIFI