Capturing various standard errors using openscript
Hi , we have automized a scenario using openscript where in the steps are like starting from creating requistion --> Req approval --> PO creation and approval --> Receipt Creation --> Invoice Creation and then quick payment.
when we playback the script it works fine with valid data inputs from databank. But we want to capture all the standard errors if any occurs in between when script playback. For eg : if Invoice batch name entered already exists in system it throws a warning like name already exists. At this step scripts fails but it capturing some error which end user wont understand. By anyway we can capture all the standard errors that can occur during functional testing. I mean we cannot write custom exception for each situation and may not what kind of errors we may face. So is there any way we can capture all the standard errors during functional testing using openscript/OTM. The platform we are using is Oracle Applicaitions ERP R12, open script 12.2
Enter your codes in try and mention code like following in catch
try{ }
catch(Exception e ) {
String pageindex = web.getFocusedWindow().getAttribute("index");
if(web.element("/web:window[@index='"+pageindex+"']/web:document[@index='"+pageindex+"']/web:div[@text='Error']").exists()){
fail(web.element("/web:window[@index='"+pageindex+"']/web:document[@index='"+pageindex+"']/web:div[@text='Error' ]").getParent().getAttribute("text"));
else if(web.element("/web:window[@title='Oracle Applications R12']").exists()){
forms.captureScreenshot();
think(2.169);
String statusBarMessage = "";
if(! forms.getStatusBarMessage().equalsIgnoreCase("")){
statusBarMessage =""+forms.getStatusBarMessage().toString();
if (forms.choiceBox("//forms:choiceBox").exists()) {
fail(" Unexpected choicebox found:- "+forms.choiceBox("//forms:choiceBox").getAlertMessage()+ (!statusBarMessage.trim().equals("") ? (".... \t Statusbar message: "+statusBarMessage) : ""));
} else if (forms.alertDialog("//forms:alertDialog").exists()) {
fail(" Unexpected alertbox found:- "+forms.alertDialog("//forms:alertDialog").getAlertMessage()+ (!statusBarMessage.trim().equals("") ? (".... \t Statusbar message: "+statusBarMessage) : ""));
} else {
fail(" Failed during script playback : " + e.getMessage()+(!statusBarMessage.trim().equals("") ? (".... \t Statusbar message: "+statusBarMessage) : ""));
else {
fail(" Failed during script playback : " + e.getMessage());
Cheers,
Deepu M
[email protected]
Similar Messages
-
Hi,
I have a Internal table from which i need to update to a DB table. while Inserting or modfying record to DB table,I need to capture the standard error message. For ex.. PErsonnel number is Locked.
And i need to dispaly all these error message list in a report.
My Q is, How to get the standard error message.
Thanks,
Kanal.Hi,
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0416'
number = p0416-pernr
subtype = p0416-subty
objectid = p0416-objps
lockindicator = p0416-sprps
validityend = p0416-endda
validitybegin = p0416-begda
recordnumber = p0416-seqnr
record = p0416
operation = 'EDQ'
nocommit = nocommit
importing
return = error_message
key = pakey. -
Hello
I've got:
legacy c code that writes to standard error
JNI c code that calls the legacy stuff
java code that calls the JNI c code
I want to capture standard error and have it available in the java code AND I don't want to redirect stderr to a file and then read that back in.
I tried:
ByteArrayOutputStream capturedStderr;
PrintStream stderrPS;
capturedStderr = new ByteArrayOutputStream();
stderrPS=new PrintStream(capturedStderr);
System.setErr(stderrPS);
hoping that capturedStderr.toString() would give me whatever was written to stderr.
It didn't ;-(
Any suggestions?
Thanks
MarkWhen you do System.setErr() all it does is reset err.
What you need to do is reset stderr and I don't believe that is possible solely in java.
I believe you can write JNI to redirect stderr in C to a new file. Then you use that file descriptor to create a new stream in java which is used to call System.setErr(). -
Getting "Method 'sign_in' does not exist" Error (using Charles)
This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
My ServiceController Class:
public function loginAction()
$this->_helper->viewRenderer->setNoRender();
$server = new Zend_Amf_Server();
$server->setClass('LoginAmfService', 'LoginService');
$server->setClassMap('CurrentUserVO', 'CurrentUserVO');
$server->setProduction(false);
print($server->handle());
My LoginAmfService class:
class LoginAmfService
* Main login function.
* @param string $name
* @param string $password
* @return CurrentUserVO
public function sign_in($name, $password)
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
$returnValue = new CurrentUserVO();
$authAdapter->setIdentity(htmlspecialchars($name))
->setCredential(htmlspecialchars($password));
$authResult = $authAdapter->authenticate();
if ($authResult->isValid())
$userArray = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
$returnValue->first_name = $userArray->first_name;
$returnValue->last_name = $userArray->last_name;
$returnValue->title = $userArray->title;
$returnValue->photo = $userArray->photo;
$returnValue->token = $userArray->id;
return $returnValue;
* Function used to log people off.
public function sign_out()
$authAdapter = Zend_Auth::getInstance();
$authAdapter->clearIdentity();
My SignIn FLEX module (the relevant portions):
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="SignIn"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
import com.brassworks.ValueObjects.CurrentUserVO;
import mx.events.VideoEvent;
[Bindable]
private var this_user:CurrentUserVO = new CurrentUserVO();
private function mdl_init():void
focusManager.setFocus(txt_username);
private function signin_handle(event:ResultEvent):void
this_user = event.result as CurrentUserVO;
if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
else
this.parentApplication.setUser(this.this_user);
private function signout_handle(event:ResultEvent):void
private function sign_in(event:Event):void
try
//Alert.show(txt_name.text + "|" + txt_password.text);
LoginRemote.sign_in(txt_username.text, txt_password.text);
catch (error:Error)
this.parentDocument.handleFault(error);
private function sign_out(event:Event):void
private function show_error(error:Error, s_function:String):void
Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
private function handleFault(event:FaultEvent):void
Alert.show(event.fault.faultDetail, event.fault.faultString);
]]>
</mx:Script>
Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
#1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
#2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
#3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
#4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
#5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
#7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
#8 {main} ?Method "sign_in" does not exist
I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
Thanks for any help!
-MikeFor those that are also fighting this issue:
The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
Using my example above, I would have to specify the RO as:
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="LoginAmfService"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObjecct> -
How to capture the DB Errors to display more specific error on the screen
HI,
How to capture the DB Errors to display more specific error on the screen?
Can any one suggest on this please.
Thankshi,
in your db package or procedure write this in ur exception handler
as
excpetion when others
FND_MSG_PUB.ADD_EXEC_MSG (pkg_name, proc_name,
substr(sqlerrm, 1, 240))
now in your java code you can catch and throw this excpetion by using
OAExceptionHelper.checkErrors (Tx, messageCount, returnStatus, messageData); -
Warnings/Errors using getClass().newInstance()
I'm getting some warnings & errors using getClass().newInstance() on an object. I can't however see what's wrong.
First a little background, Bar is a class that manages a set of beans, including creation. One of the actions is to create a special copy of bean, the method that does this does some bookkeeping (such that a particular instance of Bar will only work with objects it created).
This class was originally written in 1.4 and I'm now trying to genericify it.
First attempt:
public class Bar<T extends Foo> {
public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
T newBean = fromBean.getClass().newInstance();
// do some stuff
return newBean;
}This yielded: "Type mismatch: cannot convert from capture#1-of ? extends Foo to T"
I can cast:
T newBean = (T) fromBean.getClass().newInstance();Which drops me to a warning a can suppress: "Type safety: Unchecked cast from capture#1-of ? extends Foo to T".
The code runs fine like that, but I'd rather not even have a warning to suppress, I don't like suppress them unless I know that it really is safe.
The code above looks perfectly reasonable to me, I can't figure out why it could be problematic, which leads me to wonder if I'm missing something. We've got a parameter that is of type T or a subclass of it, calling getClass().newInstance() creates an new object such that origobj.getClass() == newobj.getClass() *. Since that class is T or a subclass of it, it should be assignable to T.
The code above when, compiled and subjected to type erasure, effectively produces a method that looks like this:
public Foo getFlaggedBean(Foo fromBean) throws InstantiationException, IllegalAccessException {
Foo newBean = (Foo) fromBean.getClass().newInstance();
// do some stuff
return newBean;
}Note that the cast to Foo is strictly unnecessary.
There's a couple ways I could solve this, such as:
public <S extends T> T getFlaggedBean(Class<S> useClass, S fromBean) throws InstantiationException, IllegalAccessException {
T newBean = useClass.newInstance();
// do some stuff
return newBean;
}I'd rather not change the API, though. Can anybody give me an idea where the initial code, with warnings could be unsafe?
Neil
* Unless you're mucking about with class loaders, but that problem would be an issue with non-generic code too.Paul,
So does that bit of the JLS mean that my compiler is doing something wrong when it finds the getClass() call, in the code below, to return Class<? extends Foo> rather than Class<? extends T>? If the latter were returned it would compile fine.
public class Bar<T extends Foo> {
public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
T newBean = fromBean.getClass().newInstance(); // doesn't compile
// do some stuff
return newBean;
}I was initially distracted by the "capture#1-of" and thought that was culprit, but as the code below demonstrates calling getInstance() on an instance of a class the compiler notes as "Class<capture#1-of ? extends Foo>" assigns to Foo just fine. Interestingly in this code my IDE says that getClass() is returning "Class<? extends Foo>", both javac and the IDE spat out "Class<capture#1-of ? extends Foo>" when the 1st line of the method had a warning or error. I assume that "Class<? extends Foo>" and "Class<capture#n-of ? extends Foo>" are equivalent and that "capture#n-of" is something fairly internal to the compiler. Can anyone shed light on that?
public class Bar<T extends Foo> {
public Foo getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
Foo newBean = fromBean.getClass().newInstance(); // this works
// do some stuff
return newBean;
} -
Hello Everyone,
When ICF is generating standard error message (e.g. ABAP WebDynpro app fails to be opened within a timeout), it uses German language for all languages other then English. All the languages in question have been defined in SMLT, supplemented by EN and had their lang packages imported. Can somebody please help to understand how to localize the ICF standard error messages to use at least EN language while showing them. (for English language error messages displayed correctly in English)
SAPGui localization for these languages work fine so that makes me feel language packages are imported properly. As for ICF localization issue, I would be ok if English error message would be displayed for such languages.
Ideally a solution should not include manual translation (e.g. via SE63/ SE61)
Regards,
MikeHi Antonio
Try using locales. Check the following document,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/58a7e390-0201-0010-abb1-8eec7eb7a2ec
Sameer -
Standard error of mean for column/bar graphs
Hi,
Is it possible for me to have different standard errors in a column graph? (i.e. in a graph with 2 or more columns/bar to have their individual error bars drawn out?) So far I have only been able to have a single number for both columns in the graph.
VV,
Numbers does the best it can with the information you give it. If you ask for Error Bars, Numbers will calculate the standard deviation for the series and assign that calculation result to each of the bars in the series.
If each of your values represents some statistic that in itself is accompanied by a standard error, that's another thing, but Numbers doesn't know what the error values are unless you tell it. The way to tell Numbers what the error bar values should be in these special cases is to use Custom values.
Here's an example:
I like to use the Scatter Chart, but you will find similar controls for the bar chart.
Jerry -
I'm exploring Flex as a candidate to use for developing a web application that displays many graphs. The data displayed on the graphs are discreate values with associated stardar errors. I need to display the standard errors as an error bar - similar to how MS Excel displays error bars. Can anyone tell me if this can be done with Flex?
V,
Numbers does the best it can with the information you give it. If you ask for Error Bars, Numbers will calculate the standard deviation for the series and assign that calculation result to each of the bars in the series.
If each of your values represents some statistic that in itself is accompanied by a standard error, that's another thing, but Numbers doesn't know what the error values are unless you tell it. The way to tell Numbers what the error bar values should be in these special cases is to use Custom values.
Here's an example:
I like to use the Scatter Chart, but you will find similar controls for the bar chart.
Jerry -
Hello experts,
I am to develop the Release strategy type configuration for VA01 tcode ( SD). For which i have added fields in table vbak. These are checkboxes (the ones that i have added in the Table VBAK). So in the layout have not assigned any function code for them .I have created 2 authorization objects and asigned users to them creating roles in PFCG.everything related to my code is going fine. But i am getting a Standard Error when i tick on the checkbox . Message class V0 and Msg No. 104.This is my code Please help me out.
IF sy-tcode = 'VA02'.
BREAK-POINT.
if vbak-zzchk1 = 'X'.
AUTHORITY-CHECK OBJECT 'ZOBJ1' ID 'ACTVT' FIELD '39'.
AUTHORITY-CHECK OBJECT 'ZLEVEL1' ID 'ACTVT' FIELD '39'.
IF SY-SUBRC <> 0.
MESSAGE 'You Are Not Authorized To Use This Transaction' TYPE 'E'.
MESSAGE E999(ZM) WITH 'You Are Not Authorized To Use This Transaction'.
clear vbak-zzchk11.
vbak-zzchk11 = 'Level 1 - Approved'.
else.
clear vbak-zzchk11.
vbak-zzchk11 = 'Level 1 - Approved'.
MESSAGE 'Successful' TYPE 'I'.
ENDIF.
ENDIF.
*BREAK-POINT.
IF VBAK-zzchk2 = 'X'.
if vbak-zzchk11 <> 'Level 1 - Approved'.
clear vbak-zzchk2.
MESSAGE 'Level 1 Should be approved first' TYPE 'S'.
endif.
AUTHORITY-CHECK OBJECT 'ZOBJ2' ID 'ACTVT' FIELD '39'.
IF SY-SUBRC <> 0.
MESSAGE 'You Are Not Authorized To Use This Transaction' TYPE 'E'.
ELSE.
clear vbak-zzchk22.
vbak-zzchk22 = 'Level 2 - Approved'.
MESSAGE 'Successful' TYPE 'I'.
ENDIF.
ENDIF.
ENDIF.Hi,
You will have to do this in transaction VFBS.
Also, go through the link below:
[VFBS in Sales Order |VFBS in Sales Order;
KR Jaideep, -
Hi, I'm developing an application and in case of exceptions I try to provide the user with well defined error-codes, eg one error code 2910 for "File not found" etc, which is far more exact than just an error message. I was wondering if anyone knew about some standard error codes defined that are commonly used in programs. So that I don't have to come up with it myself if someone have given it deep thought for good structure, understandability etc.
GilSo best thing you could do is, put all your possible errror-codes into the class that might produce them and make sure you document them ! like :
public class couldProduceErrors {
* Constant for Error : I ordered a beer but didn't have any money. This value is retuned by method
* getMeABeer if and only if .......etc ....bla
public static final int ORDERED_BUT_NO_MONEY=-1;
* Constant for Error : I ordered a beer but I'm not old enough to by one. This value is retuned by method
* getMeABeer if and only if .......etc ....bla
public static final int ORDERED_BUT_TOO_YOUNG=-2;
//the code of your class from here on
}Running this through javadoc will provide the information to the developer and he will appreciate it.
The actual value you choose are irrelevant to the user (as long as they are unique). If you like you can choose only negative value for a quick check if any error has happend.
int result =getMeABeer()
if(result<0) {
switch(result) {
//process error
else
//drinkBut if you insist here's an excerpt from the file errno.h in the linux Kernel, I find these codes hard to remember, but there are a lot of people who have it on their machine:
#ifndef _I386_ERRNO_H
#define _I386_ERRNO_H
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Argument list too long */
#define ENOEXEC 8 /* Exec format error */
#define EBADF 9 /* Bad file number */
#define ECHILD 10 /* No child processes */
#define EAGAIN 11 /* Try again */
#define ENOMEM 12 /* Out of memory */
#define EACCES 13 /* Permission denied */
#define EFAULT 14 /* Bad address */
#define ENOTBLK 15 /* Block device required */
#define EBUSY 16 /* Device or resource busy */
#define EEXIST 17 /* File exists */
#define EXDEV 18 /* Cross-device link */
#define ENODEV 19 /* No such device */
#define ENOTDIR 20 /* Not a directory */
#define EISDIR 21 /* Is a directory */
#define EINVAL 22 /* Invalid argument */
#define ENFILE 23 /* File table overflow */
#define EMFILE 24 /* Too many open files */
#define ENOTTY 25 /* Not a typewriter */
#define ETXTBSY 26 /* Text file busy */
#define EFBIG 27 /* File too large */
#define ENOSPC 28 /* No space left on device */
#define ESPIPE 29 /* Illegal seek */
#define EROFS 30 /* Read-only file system */
#define EMLINK 31 /* Too many links */
#define EPIPE 32 /* Broken pipe */
#define EDOM 33 /* Math argument out of domain of func */
#define ERANGE 34 /* Math result not representable */
#define EDEADLK 35 /* Resource deadlock would occur */
#define ENAMETOOLONG 36 /* File name too long */
#define ENOLCK 37 /* No record locks available */
#define ENOSYS 38 /* Function not implemented */
#define ENOTEMPTY 39 /* Directory not empty */
#define ELOOP 40 /* Too many symbolic links encountered */
#define EWOULDBLOCK EAGAIN /* Operation would block */
#define ENOMSG 42 /* No message of desired type */
#define EIDRM 43 /* Identifier removed */
#define ECHRNG 44 /* Channel number out of range */
#define EL2NSYNC 45 /* Level 2 not synchronized */
#define EL3HLT 46 /* Level 3 halted */
#define EL3RST 47 /* Level 3 reset */
#define ELNRNG 48 /* Link number out of range */
#define EUNATCH 49 /* Protocol driver not attached */
#define ENOCSI 50 /* No CSI structure available */
#define EL2HLT 51 /* Level 2 halted */
#define EBADE 52 /* Invalid exchange */
#define EBADR 53 /* Invalid request descriptor */
#define EXFULL 54 /* Exchange full */
#define ENOANO 55 /* No anode */
#define EBADRQC 56 /* Invalid request code */
#define EBADSLT 57 /* Invalid slot */
#define EDEADLOCK EDEADLK
//THIS GOES ON FOR QUITE A WHILE -
Standard error function (excel STEYX)
hello al
is there a vi to do the same like the standard error in excel: http://office.microsoft.com/en-us/excel-help/steyx-HP005209284.aspx
or is it the standard deviation vi? (but then, how to use the 'input data point' to point to an array?)
thanks in advancePlease refer to Note 721793 - Problems with MS_EXCEL_OLE_STANDARD_DAT.
- Guru
Reward points for helpful answers -
Calculating Standard Error from Linest
I graphed some data as a bar chart and included positive & negative standard error bars. When I try to have the calculation of standard error in the associated data table, I find that the only function available is the standard deviation, which is related but not the same. My understanding is that the Linest function will produce an array of numbers, one of which is standard error, but I cannot figure out how that function works. How is the array produced? I tried inserting the Linest function in a cell of a table separate of my data table but it only put the number which is in the A-1 cell of the array shown in the Linest explanation and I don't understand how the rest of the array is filled out. The standard error for Y, which is what I am trying to obtain, is in cell B-4 of the array as I recall.
S,
If you open the Function Browser and select LINEST, under Usage Notes you will find a link titled "Additional Statistics". The linked content includes a map of the LINEST array. Use the INDEX function to access the element of the array that you are interested in. You may need to read the INDEX function description to know how to use it.
Jerry -
How does System Exec VI identify Standard Error within cmd code?
I am using the System Exec VI to control a USB to serial adaptor program header, I have sucessfully written a .BAT file to call the CMD commands (the .exe I am running uses "-option" commands and the help file reccomends to do so) and it functions perfectly. My only issue is identifing errors. The "Standard Error Out" on the System Exec VI never outputs anything. Yes the wait until completion is TRUE and my standard output functions fine. I am curious as to how the System Exec VI identifies errors from the command prompt and why my errors are not showing up. I am currently using multiple match pattern string functions to identify the possible errors from my standar output for the time being but I would like to simplfy my code a bit and clean it up if at all possible. Not to mention there are most likely several other errors that could occur that I may have not identified. Some examples of stanadrd output errors i can get include include:
{C:\Documents and Settings\owner\Desktop\RACK LINK>C:\DCRABBIT_10.66\Utilities\clRFU.exe "" -s "0":115200 -v -vp+ -usb+
.bin not found
C:\Documents and Settings\owner\Desktop\RACK LINK>pause
Press any key to continue . . . }
or
{C:\Documents and Settings\owner\Desktop\RACK LINK>C:\DCRABBIT_10.66\Utilities\clRFU.exe "C:\Documents and Settings\owner\Desktop\RACK LINK\Calibration_v030.bin" -s "4":115200 -v -vp+ -usb+
Rabbit Field Utility v4.62
Installing Calibration v0.3.0
Sending Coldloader
Error: No Rabbit Processor Detected.
C:\Documents and Settings\owner\Desktop\RACK LINK>pause
Press any key to continue . . . }I think you should use error handling in batch programming, see this link http://www.robvanderwoude.com/errorlevel.php
CLA 2014
CCVID 2014 -
FRM-40815: Form Error, using CUSTOM.pll
Hello,
I am trying to customize WIP Lot Transactions Oracle Standard Form using CUSTOM.pll.
Upon navigating to one of the 3 blocks in the form(RESULTING_LOT), I am getting following error message:
"FRM-40815: Variable GLOBAL.CLRREC_NOVALIDATE does not exist"
This global variable is not used in CUSTOM.pll at all. But is initialized and used in the standard form only.
When custom code is turned off, there is no error message.
Please advise.
Thanks,
Krishna.Hi,
Thanks for the response.
I have created a custom profile and attached it users and Profile value has the organization names.I want the User A with Org1 value in the profile to see all the GL Batches which is created by any other user who belongs to only Org1. Say another user User B with Org2 as the profile value should not see any GL batches created by any other user in the GL Journal Form belonging to other Org's.I'm able to restrict the batches using the below query using the personalizations in the Record Group for the Batch Name.But if the user doesnt give any search criteria and then selects Find then the main form displays all the batches. Hence I want to overide the Data Block where to display accordingly.
select a.name from gl_je_batches a
where 1=1
and a.created_by in (select b.user_id from
fnd_user b,
fnd_profile_option_values c,
fnd_profile_options d
where c.profile_option_id =d.profile_option_id
AND c.level_value = b.user_id
AND profile_option_name='KAP_USER_ORGANIZATION'
AND c.profile_option_value =(select profile_option_value
from fnd_profile_option_values e
where e.level_value =fnd_profile.value('USER_ID')
and profile_option_id=d.profile_option_id)
Thanks,
Ashwini.
Maybe you are looking for
-
Is there a way to run a query with all the logging to rollback turned off? I have a script that runs many queries on a table, and I keep running out of rollback space. I know I can specifically set a rollback segment with a "SET TRANSACTION USIN ROLL
-
Changing windows in a full screen game
I play Call of Duty 2 and run TeamSpeex on my iMac. My problem is that, sometimes while I am playing I need to get to the TeamSpeex window without quitting CoD2. I've tried F9, F10, command-tab, and command-m. Nothing seems to work. Is there another
-
Negative Sign in Debit (Outgoing Payment)
Dear Experts, I have a problem where the in outgoing Payment (overpaid) showing negative sign in Debit side(- $0.50) , for accounting standard it should be show RM0.50 in Credit side JE if it's overpaid. Because of this, it effected the display on Ge
-
ValueEx versus Value (Matrix UserDataSource)
If I add a new line to a Matrix and clear the value of a number column using : dsQuantity.ValueEx = ""; I receive this error Data Source - Invalid field value [66000-19] However, I can successfully clear the column's cell using the method of Value (
-
Can I show location name in map by Japanese in Power View / Html5 / Office 365 ?
Can I show location name in map by Japanese in Power View / Html5 / Office 365 ? I want to show location name in map by Japanese. at 2014/5/11's Power View / Html5 / Office 365, Map show English location name instead of Japanese location name. Map of