Substitution method to get work rep name
Hi all,
what is the substitution method I need to use to get the work rep name.
Thank you,
K
Hi Guru,
Thank you for the reply.
we can use the method <%=odiRef.getPrevStepLog("INSERT_COUNT")%> to get row count only for the previous step. I have a package here with almost 20 steps in it. I want to make sure none of these 20 steps have downloaded any records. Hence, I declared a variable and did a sum(NB_INS) from SNP_STEP_LOG for that particular session. And, I then evaluated if this variable is > 0. Any other better way of doing this? Thank you
Regards,
K
Similar Messages
-
Substitution method to get Worktable name
Hi ,
Is there a subsitution method to get Work table name created by LKM within IKM ?
I see getFrom() being used in few IKM.Thanks Cezar.
For tyring it for me. I am trying to read those field and wirte it to a file.
My Code under Jython is
import os,sys
srccolumns = [ <%=odiRef.getColList("", " [COL_NAME]", ",", "", "UD3")%> ]
filehandle= open('/tmp/sourcecolumns.txt','w')
for col in srccolumns:
filehandle.write(col)
filehandle.close()
I get no value in my variable srccolumns.
Thanks.
Edited by: user571269 on Apr 20, 2010 12:13 PM
Edited by: user571269 on Apr 20, 2010 12:17 PM -
Method to get all File names in a directory
Hallo together,
has Java any method, to get the file names in a specific directory?
Regards,
Martin... or simply list() if you're interested in file names only.
-
Substitution Method to get hostname(ODIServer)
Any quick substitution method I can use to get the hostname of the server the Agent is running on? Im looking for the least impact possible, could set up a variable etc. but that would mean a lot of changes in my enviroment
If I can do so with substitution method I can swipe the repos tables in one hit.
Many thanks
AlastairHi,
hoping to help you could use this workaround
-create a flexfield on pysical agent
-create a userfunction that decodes your agent name to its internal id
-use in your interface
<%=odiRef.getFlexFieldValue(myFunction(odiRef.getSession("AGENT_NAME"),"<AGENT_TYPE>","FLEX_HOSTNAME")%>
I know it's quite twisted... -
Method to get working Java program on a PDA
Hello all,
I am attempting to create a java program for my PDA. I'm trying to use CrEme to do it but I am having many many problems with it. I've looked on the forums and they all appear to be posts where people have some clue. I have none.
For example. Can you use any sdk to develop the program. Can you simply develop a desktop app and convert it to use on a PDA?
Once CrEme is downloaded what do you have to add to the classpath on your desktop to compile with it. Up till now I've simply compiled with the standard java system using %javac my_app.java
What do you type in the command line to run the emulator?
In what form should you port the program to your pda? I've tried using .jar files. I load it and nothing happens. What do I have to type in the jRun command? Whats a .lk file and how do I use it?
So many questions so little time. I am genuinly confused by all this and some help would be appreciated. I have looked around the internet and can find little or nothing to help a pda newbie . Incidently if I have missed anything online and this is all just wasting someones time, could they show me where I've missed it?
Thanks a lot
NI built a lot of applications to run on my PDA (Sharp Zaurus SL5500). When I first got the PDA I didn't know any Java. What I do, and it may not be useful to you, is to develop on my desktop using as few classes not supported in 1.0 as I can get away with. That seems to make the code runnable on the Zaurus JVM (which is JEODE). I don't use an interactive development environment (I never have gotten the hang of them); I just use a text editor that supports syntax highlighting (CONTEXT). Then I copy the compiled classes to the PDA and run them there.
-
Hai experts,
I have a requirement as follows:
I have a component named as ZComponent which has 3 view.
i am creating 2 applications for the component named as zappl1 and zappl2.
zappl1 starts from first view itsef where as zappl2 starts from second view.
I have an ALV table in the second screen.
it shud not be editable for ZAPPL1 and shud be editable for ZAPPl2.
Inorder to that i need to get the application name at runtime in the WDDOINIT METHOD of the second view.
Is there any method to get the application name.
If so plz help me as soon as possible.
IF any doubts revert back to me ASAP.
Cheers,
MadhuHi Madhu,
You do not need the application name for this. The following would work:
1. Create one more inbound plug to your window (interface view), other than the existing plug (default). The second plug should also be an interface plug of type "startup".
2. Create a node in your component controller with an attribute denoting the editable property.
3. Map this node in the window's context.
4. Your window will have 2 plug handlers, for each startup plug. Inside one handler, set the editable attribute to true and in the other, set the same to false.
5. Map the same node in the view controller also, and in your view layout, bind the "read only" attribute of your table to the node attribute.
6. Create a new application, zappl2 and in the default plug, specify the name of the second plug.
Launch both applications, your control should be editable in one and read only in the other.
Regards,
Nithya -
REP-51018 -- cookie method is not working :(
Trying to invoke a simple report from a simple form by using web.show_document()
if I pass the userid=x/y@z then it work fine
if I try to use the cookie method as defined in the OTN whitepaper "Secure Web.Show_Document() calls to Oracle Reports", I am bumping to the REP-51018 error.
Tried the metalink and found primarily 2 documents, one (note#279938) is suggesting using
SYNCHRONIZE; prior to invoking the WEB.SHOW_DOCUMENT(...), which I did - not worked,
then I read the document (#309652.1) which tells that the cookie method will not work if not using fully qualified domain name -- I have a fully qualified domain name and I can see in the browser cookie settings that the domain is set correctly.
I also edited the basejini.htm and basejpi.htm files and added the suggested entries as shown in the same OTN whitepaper (page #9). And recycled the entire iAS server after all the editing (reports.sh, formsweb.cfg, etc).
I can see the cookie is saved on the client browser and the userid is displayed in the JInitiator control window.
FrmReportsInteg0: Debugging true
FrmReportsInteg0: Adding new userid string "zafer/mutlu@jtls5"
FrmReportsInteg0: Default cookie domain: .rolands.com
FrmReportsInteg0: set RW_AUTH10g
FrmReportsInteg0: Arguments: encryptionKey=reports9i; Reports version=RW10g
FrmReportsInteg0: Cookie value for RW10g is: zafer/mutlu@jtls5;1135302256455:30
FrmReportsInteg0: Encoded cookie value is: W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==
FrmReportsInteg0: Complete cookie string is: userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==
FrmReportsInteg0: Added domain ".rolands.com" to cookie
FrmReportsInteg0: Generated Cookie String: userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==; domain=.rolands.com; path=/
liveconnect: JSObject::eval(document.cookie="userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q==; domain=.rolands.com; path=/")
liveconnect: the url of the applet is http://raptus.rolands.com:7778 and the permission is = false
FrmReportsInteg0: NS Cookie Set
network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with proxy=DIRECT
network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with cookie "userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q=="
network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with proxy=DIRECT
network: Connecting http://raptus.rolands.com:7778/forms/lservlet;jsessionid=0a0a0a2230d8a457f8e558fe43b4b3e5a9b908500738.e38Oc3aQc3ySci0TbheLaNuSah50n6jAmljGr5XDqQLvpAe with cookie "userid=W3zbSs88ClXKCO9kxqPbyQiyd120sKakxxmhtfgtZoUe4Q=="
The only thing I can see is this line:
liveconnect: the url of the applet is http://raptus.rolands.com:7778 and the permission is = false
if this is the problem how can I fix it?
What is wrong with this cookie method? What I am doing wrong?
Any input is appreciated very much.
Zaf.Here is the code I am using in a when-button-pressed trigger in the form to invoke the report.
And yes, the javabean USERID_BEAN is created/defined under the CONTROL block, with all the properties as explained in the OTN whitepaper.
thank you.
=================================================
message('Invoking the related report...', ACKNOWLEDGE);
message(' ', NO_ACKNOWLEDGE);
DECLARE
rep_url varchar2(2000);
user_name varchar2(40);
passwd varchar2(40) ;
connectstring varchar2(20) ;
BEGIN
user_name := LOWER(get_application_property(username));
passwd := LOWER(get_application_property(password));
connectstring := LOWER(get_application_property(connect_string));
rep_url:='/reports/rwservlet?&envid=jtlsDDS&&report=readme.rdf'
||'&desformat=htmlcss&destype=cache&userid=';
-- Write log messages to the Forms JInitiator console. The next line must
-- be disabled before running this code in any production environment
set_custom_property('CONTROL.USERID_BEAN',1,'WRITE_LOGOUTPUT','true');
-- set userid in encrypted cookie before calling Web.Show_Document()
set_custom_property('CONTROL.USERID_BEAN',1,'ADD_USERID',
user_name||'/'||passwd||'@'||connectstring);
-- writing the cookie
set_custom_property('CONTROL.USERID_BEAN',1,'WRITE_USERID_COOKIE','10g');
-- Add the next line to correct REP 51018 error
SYNCHRONIZE;
WEB.SHOW_DOCUMENT(rep_url,'_blank');
END; -
Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now even the older "option+letter" doesn't work in most places.
Chrome doesn't support the new accent/diacritics/macron chooser. I'm not sure about other browsers such as Firefox. You can use the old Option+letter combination that Doug suggested. Hopefully updates will solve these little incompatibilities shortly.
Neill -
gmail on iphone was working fine until yesterday when it prompted me with the message "cannot get mail user name or password for gmail is incorrect", i have tried deleting the account and re-created a new account, same problem, can anyone help?
paulcb, you're a genius, it worked, thank you so much, you don't know how much stress you have taken off my shoulders, I am constantly on my email in my iphone everyday. Thanks a million, take care. Robert.
-
How to get Interface's Internal ID using substitution methods
Do anyone have any idea, how can I get an Interface's internal ID. Is there any substitution method that I can use to get the ID.
I want to use this ID in the steps of Knowledge Module (KM).But querying SNP_POP to get the ID in a refresh variable will force me to create a package. I can't afford to do that because my KM will be used in several interfaces and packages. So, I have to find all such packages and add this variable in all of them which is a tedious task.
Anyways, thanks for your response!
Edited by: Sheku08 on Apr 6, 2012 2:10 AM -
How to get the Class name of an API method?
Like most of us, it's difficult to know where every method within a Java class is. Also, many of the same methods are scattered throughout Java Classes. I know of two methods that retreive this... getClass().getName(). But, you must have an object to use these. Is there a way to find out what Class contains a method or Class variable thru an Applet or Java Application?? Obviously, I can look at API Docs; but this takes time.
Tks RandyRajEndiran wrote:
Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID. -
How to get object/instance name in method
Hi folks,
I have created a class and implemented a method within the class.
Now i would like get the name of instance/object calling this method ,within this method.
Is their any way to get this obj name within method?
Eg:
I hve class ZCL with method METH
Now in some program i used this method, by creating any obj
data obj type ref to ZCL
obj->METH
Now is there any way to get this obj name within the methodMETH by using some method like GET_OBJ_NAME(just making a guess)
Regards
PG>
PG wrote:
> Now is there any way to get this obj name within the methodMETH by using some method like GET_OBJ_NAME(just making a guess)
>
> Regards
> PG
Please check the below code snippet
DATA:
lref_obj TYPE REF TO cl_abap_typedescr.
lref_obj ?= cl_abap_objectdescr=>describe_by_object_ref( me ). -
POST Method fails, Get Method works
WL6.1 sp1
WIN NT
Browser: IE 5.x
Can some enlighten me to why this might be happening, I have certain
users who can not use some of forms that I have created if the method is
set to POST. When the submit button is clicked, all data in the request
object when are being set to null. This causes servlet to rerurn wiht
NullPoint exceptions. If I change the method to GET, then it works fine.
On most computers it works fine except for a few important ones.
Jerrie
[att1.html]
1) Post your code
2) Post the HTML
Mike
<[email protected]> wrote in message news:3c509103$[email protected]..
WL6.1 sp1
WIN NT
Browser: IE 5.x
Can some enlighten me to why this might be happening, I have certain users who can not use some of forms that I have created if the method is set to POST. When the submit button is clicked, all data in the request object when are being set to null. This causes servlet to rerurn wiht NullPoint exceptions. If I change the method to GET, then it works fine. On most computers it works fine except for a few important ones.
Jerrie
[att1.html]
-
I recently used icloud on my phone to back up my phone. After I did that my gmail stopped working, so I deleted it and when I go to add my gmail account I get an error message. It says cannot get mail, user name or passwork incorrect? What do I do?
Hi,
Just wanted to say I found out the answer. I should have looked first to see if anyone else was having the same problem but I didn't. -
ODI substitution method in procedure
Hi Gurus,
I want to create an ODI procedure which will execute the code like
delete from target_table where target_table.column in ( select some_other_table.column from some_other_table where some_condition )
I want to use ODI substitution method for replacing target_table ,target_table.column ,some_other_table.column .
Tried with getTable() Method , but it seems (to me) that it works only on KM and not on procedure .
the following code returns error /exception "invalid table name specified "
delete from <%=odiRef.getTargetTable("RES_NAME")%>
By the way my source/target technology is Oracle.
Where am I going wrong ?
--Pujancan any one help me in this ?
Observer the following
In ODI package OdiOutFile , if I specify this command
SELECT COUNT(1) FROM <%=odiRef.getObjectName("L","EMP","LOG_SRC","D")%>
In the out file I get the correct command as SELECT COUNT(1) FROM SCOTT.EMP
But if I specify the same command in a procedure then it is ruturning the following
Description Tab : select count(1) from < % = odiRef.getObjectName("L","EMP","LOG_SRC","D") % >
Execution Tab: 903 : 42000 : java.sql.SQLException: ORA-00903: invalid table name
java.sql.SQLException: ORA-00903: invalid table name
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
--Pujan
Maybe you are looking for
-
When I connect.. sometimes it says Device not recognized or malfunctioned!
Hi. When I connect my ipod to any microsoft device, sometimes my ipod doesnt connect. I cant charge it, or restore it as it behaves like a useless piece of plastic.. I get a yellow bubble 'Device not recognized or has malfunctioned' This problem is b
-
How do I create a new paragraph Style in Pages for iPad?
I opened an RTF document in iOS 6 Pages for iPad. How do I create new paragraph Syles?
-
How can I retrieve old iMessages (from phone) from Messages on my computer
Hi, I recently installed Mavericks, and now have Messages. However, it only seems to have access to my texts from one person, and no one else. I have tried the steps described here- https://discussions.apple.com/message/17818978#17818978 -without suc
-
Beginning of iTunes Home Sharing tracks cut off
I recently set up a new Apple TV 3, which is connected via Wi-Fi to my home network and to my TV & receiver via HDMI. I have turned on Home Sharing in iTunes on my iMac (connected to the same network via Ethernet), and am using the Computer function
-
Sub query sql compact 3.5
I have the following query in sql server compact that returns me the following error token number = 3, Token line offset = 28, Token in error = select] can someone help me with this problem? follows my query created: SELECT lm.cod_local, lm.des_local