Authorization Scheme - Getting handle on which object is calling the scheme
Hi
I'm currently trying to write a custom authorization scheme using a plsql returning boolean. What I'm wondering is whether there is a way to reference the application object (e.g. page, region, page item, button etc) that has triggered the authorization plsql to run.
What I'm ultimately wanting to do is to create a generic authorization scheme that can be applied to any object, and that auth scheme will look up a database table containing what users can access what object. I can only do this if I know at run-time which object the plsql is currently checking authorization for. (I can get the user from :APP_USER.
For example I have an authorization scheme "test_scheme". I have applied test_scheme to the button "CREATE" on page 1. This button has a button_id which I can find from APEX_APPLICATION_PAGE_BUTTONS view.
During page rendering the buttons authorization scheme will be checked (and so the plsql returning boolean will be triggered). When the plsql is triggered I want to reference the fact that the CREATE button on page 1 (or better the button_id) has triggered the plsql, from within the plsql itself.
I hope this makes sense.
Many thanks in advance.
Hi Scott,
Looks like there are a few others out there encountering the limiatations of authorization schemes.
Hopefully there will be an enhancement at some point to enable referencing the component id which has triggered the authorization scheme to run.
Until then I will go down the route of creating an authorization scheme for each component that needs one.
Many thanks for pointing me to that discussion.
Jimbo
Similar Messages
-
Handle to error object after calling the statement execute - SQLDBC
Topic related to SQLDBC inteface to MaxDB
=======================
In C++ while i was executing the statement
rc = stmt->execute("SELECT 'Hello SAPDB' from DUAL");
i could get a handle to the error object by a call to
stmt->error().getErrorText()
Now while using SQLDBC_C i am using
rc = SQLDBC_Statement_execute(stmt,tempstr,strlen(tempstr),encodAsciiType);
Now how do i get the handle to the error object ??
Call like the above one
fprintf(stderr, "Executed SQLDBC_Statement %s",stmt->error().getErrorText());
gives me compilation error:
error: invalid use of undefined type `struct SQLDBC_Statement'
/opt/sdb/programs/sdk/sqldbc/incl/SQLDBC_C.h:125: error: forward declaration of `struct SQLDBC_Statement'
Please Help and feel free to ask me if the question is not clear.
Regards
RajaSorry. This question doesn't make sense. So, i withdraw the question.
Basically what I had confused with earlier and got clarified now is:
Just like when we make a call to SQLDBC_Connection_connect and after that use the SQLDBC_Connection_getError to get a handle to the SQLDBC_ErrorHndl.
I wanted to know how should we get a handle to the SQLDBC_ErrorHndl after we have made a call to the SQLDBC_Statement_<function call>.
I got the answer after looking through the SQLDBC_C.h file. It will be SQLDBC_Statement_getError and similarly SQLDBC_PreparedStatement_getError.
Wish i could award myself the 10 points for solving the problem
Regards
Raja -
How to find out which objects are at the end of the datafiles
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.>
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.
>
You may want to copy this and add it to your toolkit
See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/ -
Xml nodes which are not meet the schema validation
Hi All,
Is there way to keep xml nodes which are not meet the schema validation ,so that i can send those failed records back to the Source Target.
I thought to implement to adding validate in the ForEach loop.Any hintsIn Windows you hold down the Ctrl key while clicking on the nodes you want to select. Don't know the equivalent in other environments.
-
I have two hard drives on my G5(2004). How do I get to choose which hard drive is the start up disk when I turn on the computer? Is it the shift key I hold down?
depending on which model of G5 and OS installed will depend on whether a key command will work
alt at start up may work, if it does not, use the start up disc setting in;
apple menu > system preferences > system > start up disc
of course, the second drive must have a compatible OS installed for it to be able to boot. -
does anyone know why my iphone keeps switching all of my alert tones and ringtones assigned to contacts? i restored it and it still keeps doing it and now when ever i get a txt or a phone call the tones just sound terrible. how do i fix this?
Your only chance is setting it up as new device without using the latest backup afterwards, which you already did.
If this does not work, you should get it serviced:
Apple - Support - Service Answer Center
How to back up your data and set up as a new device -
I have not used my CS3 version for about 3-4 years. I tried to use it recently and I get a message about activation. Called the phone number recommended but no longer in use. How do I start using MY version I paid for? Using PC
Can you activate CS3. If you lost your serial you can retrieve it from Adobe.com. Sign in at Adobe.com the use this link https://www.adobe.com/account/my-products-services.html When your Adobe Product list is displayed click on your CS3 product your serial number should be displayed.
-
Problem in getting handle to EJB Object
Hi All,
I am getting following exception when i try to get handle on my ejb object.
My Client Program:
import synch.*;
import javax.naming.*;
import java.rmi.*;
import javax.rmi.*;
import javax.ejb.*;
import java.io.*;
public class SearlizeClient
public static void main(String[] args) throws Exception
Context ic = new InitialContext();
Object o = ic.lookup("NameBean"); // replace with YOUR JNDI name for the bean
NameHome nameHome = (NameHome) PortableRemoteObject.narrow(o, NameHome.class);
synch.Name obj1 = nameHome.create();
obj1.setName("Balaji");
Handle myHandle= obj1.getHandle();// Getting exception at this place
FileOutputStream out = new FileOutputStream("MyHandle.txt");
ObjectOutputStream s = new ObjectOutputStream(out);
s.writeObject(obj1);
s.flush();
out.close();
I got following excetion when i try to get handle on EJBObject
Dec 6, 2005 11:20:19 AM com.sun.corba.se.impl.encoding.CDRInputStream_1_0 read_value
WARNING: "IOP00810257: (MARSHAL) Could not find class"
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemExcep
tion.java:7756)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_
1_0.java:873)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_
1_0.java:863)
at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java
:269)
at synch._Name_Stub.getHandle(Unknown Source)
at SearlizeClient.main(SearlizeClient.java:20)
Caused by: java.lang.ClassNotFoundException
... 7 more
Exception in thread "main" java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested excepti
on is:
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:197)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at synch._Name_Stub.getHandle(Unknown Source)
at SearlizeClient.main(SearlizeClient.java:20)
Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemExcep
tion.java:7756)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_
1_0.java:873)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_
1_0.java:863)
at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java
:269)
at synch._Name_Stub.getHandle(Unknown Source)
... 1 more
Caused by: java.lang.ClassNotFoundException
... 7 more
Enviroment: This bean is hosted on Sun J2ee Appserver 8.0 and normal client prg is working fine .. But it is failing in getting handle
Please suggest,
Thanks in advanceThe only way is to create your own equivalent of HttpSessionContext.
Its simple enough, just create a class that implements HttpSessionListener (responds to session creation, and destruction)
You can get the sessions as they are created, and keep a global reference to them, and manipulate it as much as you like. In your case you would probably want to index the sessions by userId rather than sessionId for easy access.
Good luck,
evnafets -
How do I get an image which is larger than the page to scroll?
I am new to CSS and CS4 and my problem relates to a gif image which is larger than the page.I cannot get the image to scroll either vertically or horozontally. This image is of a family tree graph and I cannot reduce it's size any more otherwise it would not be ledgeable. I want the image to scroll vertically underneath the fixed header. I am using a twoColHybLtHdr template. Also when I have corrected this problem will the CSS then apply to all further pages and could that cause other problems?
Thanks in anticipationThank you for your advice. I have been adjusting the CSS settings in the Container and the Main Content. I have now achieved both scroll bars, that cover all pages. The problem I have now is getting the Bottom (horizontal) scroll bar onto the bottom of the browser window. If I set the height as auto or inherit then the scroll bar stays at the bottom of the page, so you have to scroll down to find it. I can set the height in px and this is fine for one window resolution but it doesn't automatically reposition for the various different resolutions, is this possible to achieve? Can anyone please help me resolve this last obstacle
-
Which comes first? The schema or the form?
I am new to livecycle, so please bear with me ;-)
My question is about schemas. Since my company does not have a "master" schema, we will be starting from scratch.
How does one begin? Do you create a schema first in a tool such as xmlSpy and then use that to create forms and bind the data? Or does one start by creating forms and then exporting the data from livecycle out to a schema (which then would also need to be bound back to the fields in the data view). For some reason I'm stuck thinking that starting by creating the form(s) first and exporting the data would be useful for growing your master schema.
Thanks for your help!Hi,
What the Paul said is actually correct. However most of the time form is changing a lot so you have to change the schema before changing the form if starting from schema.
If you design the document first, you can generate the schema later by using the exported data of the PDF. There exists some free tools to convert XML data to XSD schema.
In case of any consultancy issues and huge number of PDF designs needed in small periods, we develop and design PDF documents.
Asiye Günaydın
Project Consultant
KGC Consulting Co.
http://www.kgc.com.tr -
How to determine the get/set methods of an element from the schema
Is there a way that I can obtain the java method call to an element using only the schema (maybe using SchemaTypeSystem, SchemaType, SchemaComponent)? For instance, as I traverse the schema is there a method that I can call that will return:
"getPurchaseOrder().getCustomer().getName()"
for the name element in the form of a string or some other representation?
Thanks in advance.
JoeySorry Manoj,
but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.
I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!
Thanks anyway...
MIKE -
Determine which validation step called the user exit, possible?
Hello all,
We have a a validation with different steps that use the same user exit in their respective check.
My functional analyst asked me if there is a way to programmatically determine in the user exit which step is executing the user exit.
So I am asking the same question here.
As an example:
Validation FI100 has step 001, 002, and 003.
Each of these steps use the user exit U100 from module pool ZGGBR001 in their check.
I haven't found a way in the code of U100 to determine which step called U100.
Does anyone know if this can be done?
I have used the following technique to get a variable from the program's call stack.
data: var_name(30) type c value '(Z_CALLING)VARIABLE' .
field-symbols: <fs> type any.
assign (var_name) to <fs>.
write: / 'Variable from Z_CALLING', <fs>.
But I'm not sure how this might work with validation steps/user exits.
Thanks
BruceVinod,
I did some debugging after I posted my question. I came to the same solution, use FM 'SYSTEM_CALLSTACK'.
VALCHCK_2FI100##001
loop at i_callstack into w_callstack
where EVENTNAME+0(9) = 'VALCHCK_2'.
FI110 is the validation
001 is the step
Thomas,
Thanks for the caveats.
Bruce -
Which table/view has the schema details?
Hi All,
In which table/view I can view the different schemas present in the database? Should I sign-in as SYS or any user can read from that table?
Please help...
Thanks in advance...DBA_USERS will tell you the users that have been created in the database. Some or all of those users may have objects in their schemas, which you can see via DBA_OBJECTS.
You don't need to be a DBA to query those views, but you do need appropriate privileges. Depending on your Oracle version, you'd need either the SELECT_CATALOG_ROLE role, the SELECT ANY DICTIONARY privilege, or a direct privilege grant on the particular views you're interested in.
Justin -
Get handle to "model" after RFC call
I need to place in httpsession the "model" (structure) returned from my RFC call.
This code does not work:
Zemployee = wdThis.wdGetGetEmployeeController().wdGetContext().nodeOutput().nodeE_Employee().currentE_ReturnElement();
How do you get a handle to the "model" following an adaptive rfc execute?
Thanks,
KevinHi kevin
get this like
wdContext.currentmodeloutputelement().getmethod();
And explain you want to handle the outputelement?
Handle the outputelement means,
Determine the number of outputs
Case 1:
if single
get,
wdContext.current<BapiOutputElement>.get<attribute>
Case2:
If it is multiple rows,
using the loop,
for(int i=0;i<size of the outputnode;i++)
wdContext.node<BapiInputElement>.getElementAt(i).get<Attribute> -
Get Value of Integration Object operation in the response
I am sending a response as shown below through Soap UI to Siebel EAI
Request:
<oneg1:HlsCase Operation="query" >
<oneg1:MasterCaseNumber>1-1082558</oneg1:MasterCaseNumber>
</oneg1:HlsCase>
and expecting to get operation details (operation= query) in the response
<HlsCase>
<Id>1-N7AW</Id>
</HlsCase>
but this is not happening. I have a to create an alert if the operation is Upsert or Insert.
I tried to use script shown below
Clib.fputs(" operation--" + Inputs.GetChild(0).GetChild(0).GetChild(0).GetProperty("operation") + "---\n",fileptr);
Clib.fputs(" Operation--" + Inputs.GetChild(0).GetChild(0).GetChild(0).GetProperty("Operation") + "---\n",fileptr);
but it did not give any value.
Is there any was to know if an EAI operation was query/upsert after it has passed through the "EAI Siebel Adapter" workflow step?
Edited by: user7393805 on May 13, 2011 7:01 AM
Edited by: user7393805 on May 13, 2011 7:02 AMWhy don't you add status key, you can see which operation has done in your response.
Here is the example response:
<ListOfAccount xmlns="http://www.siebel.com/xml/AccountIO">
<Account Operation="update">
<RowId>1-1J4P9E</RowId>
<ListOfContact>
<Contact Operation="update">
<Id>1-1J4PD0</Id>
</Contact>
<Contact Operation="update">
<Id>1-1J4PC6</Id>
</Contact>
</ListOfContact>
</Account>
</ListOfAccount>
Maybe you are looking for
-
When I plug me ipad to itunes i get the error message that it is not supported and that i have to go to itunes and get "itunes installer" and re-install. if i do this will i loose my files and music?
-
I switched laptops and want to download the Adobe acrobat 9 standard I bought Oct 30,2008. I can't seem to get it to download. Can you help
-
Message tracking and disk usage
hello, I cannot find answer in documentation... what happens if disk quota for message tracking is full? a) message tracking is stopped b) oldest messages will be overwritten which possibility is correct? how much is slowdown performance if message t
-
VGA cable question, and a problem
My PowerBook is connected to my 17" LCD via the cable that was included with the monitor. I bought a replacement VGA cable the other day. (I needed the original VGA cable to connect my Mac mini to the TV.) The original cable works perfectly with both
-
IPod disk formated? How to install it back all the players/programs?
I am using MacBook and iPod. Once I've wanted to take copy all my videos from my iPod, which I've put in manualy into a hardrive (without iTunes) using MacBook, just copy and paste. When I've conected my iPod to the PC (my friends computer), on My co