Access an element on a page based on authorization scheme
HelloI have two authorisation schemes: ADMIN and VIEW. I created a public page which will be available under both plans. But I want to display an item only to ADMIN not schema of the VIEW on this page in particular region.
Thank you
Manoi.
for properties in this area, go to conditional display and use the bult in function (after you choose plsql function to return a Boolean value): APEX_UTIL. PUBLIC_CHECK_AUTHORIZATION ('your_auth_scheme');
This function returns true if the current user is in this authorisation scheme:.
Let me know if this is useful,
Sam K.
Tags: Database
Similar Questions
-
Before the process of pl/sql header to assign values to the elements on the page
How can I assign values to the elements of a page based on the data structure returned by a pl/sql procedure in the front header process? I think execution of a pl/sql procedure based on a URL parameter value and then assign values to the page elements. Is this really possible using Apex 4.0.2? If so, how can it be done?
Thank you
SalomeThe question is not really clear. What kind of "data structure returned by a procedure from pl/sql? Please be much more accurate.
For a data structure of PL/SQL such as records containing 2 elements (x and there) returned as output parameter for a procedure to be assigned to 2 items p1_x and p1_ypage, all that is necessary in the header before process is something like
declare ... l_rec rec_type; ... begin ... the_proc(..., p_out => l_rec, ...); :p1_x := l_rec.x; :p1_y := l_rec.y; ... end;
-
How to disable a page based on the value of another element on the Page element?
Hello
How can I turn a page element using javascript based on the value of another element on the page?
Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".
How can I do this using javascript. I want this implemt on loading the page.
Kind regards
BenzPut this function in the page header:
and call it in the footer:
f_disable_item;
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
Position of the element on the page
Hi - I'm still pretty new to LiveCycle so hopefully it'll be easy.
I produce a PDF and I am trying to get information on each element to put in bookmarks XML so that I can bookmark the PDF dynamically.
I found that I can use xfa.layout.page (this) in the script of layout: ready to get the page number of each article, but I can't work, how to get the position of each element on the page. All I can find are this.x/this.y and xfa.layout.x (this) / xfa.layout.x (this), but those will be 0,0 - which I think is because the element is located at the top left of the element that contains.
Does anyone know how to get the position of an element on the page?
Thank you
Dan
Hi Dan,.
John Brinkman has x, y of the samples on his blog: http://blogs.adobe.com/formfeed/category/transpromo
I have here a sample that accesses the x, y position of the objects and mouse, which can help.
http://cookbooks.Adobe.com/post_Moving_Objects_Around_a_Form-16519.html
and
http://assurehsc.IE/blog/index.php/2010/05/moving-objects-around-a-form/
You are right that the coordinates are based on the top/left of the container. When you work with coordinates I tend to set the container of the Page master at 0,0, so that all objects are then based on this.
Good luck
Niall
-
How to retrieve a value of page element in another page?
Hello
How to retrieve a value of page element in another page?
say P55_COURSES_TO_EVALUATE is my name of the page element, and it is a selection list. Based on the value selected in the next page I see the details of the selected value shd and for that I need P55_COURSES_TO_EVALUATE value in the following page. How to do it? When I try to retrieve the values it simply returns nothing.
Pointers would be really useful.
Thanks in advance.Hello
Could you please how you try to use it?
If you set the value to the P55_COURSES_TO_EVALUATE element and submit the page, the value is stored in session state.
Then you can use this element in any page as:P55_COURSES_TO_EVALUATE
You cannot access page value in javascript/jQuery to other pages like
$v('P55_COURSES_TO_EVALUATE') document.getElementbyID('P55_COURSES_TO_EVALUATE') $(#P55_COURSES_TO_EVALUATE)
Because the item is not on the other pages. In javascript from other pages, you can use
var a = '&P55_COURSES_TO_EVALUATE.';
Kind regards
Jari -
Generate a page based on a query variable in another page?
Hello. I am trying to generate a page based on data from a single line in a table (not a report, such as the look of the page may be in a table). I've set up a report containing a list of all the lines where the first column consists of links; each link loads the new page and sends the value of the display of the link as a query variable.
How to access the database without having to create a report? I think that PL/SQL and dynamic content is involved, but my knowledge in Application Express is Rusty at best.If you have a page parent with a report, you can create a column in the column link properties and link, you would choose an image and the elements on your page in which target you want to pass your values:
1. report of the attributes / add column link (link on the right side)
2. change your link column and go to the section "links in the column".
3. choose the link image
4. indicate your target page
5 specify the (probably hidden) element on your page target to pass values to
6 specify the column that contains the value of the key
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
To access the APEX_COLLECTIONS on another page
Use: APEX 5
One of my app pages (Page 12), I have a dynamic action that calls upon request AJAX callback process.
The code of the dynamic action has the javascript call:
var arr_f01 = [];
() $("input[name='f01']:checked").each
function() {}
arr_f01.push ($(this).) Val());
});
(apex). Server.Process
"Lines Checked process."
{f01: arr_f01},
{the data type: 'text',}
Async: false,
success: {function (pData)}
$s ("P12_SELECTED", pData);
}
});
The recall AJAX process is:
Controlled process lines
declare
l_f01 varchar2 (2000);
Start
APEX_COLLECTION. () CREATE_OR_TRUNCATE_COLLECTION
p_collection_name = > 'TEST_COLLECTION');
l_f01: = ";
delete from lrg_symptoms_select;
because me in 1.APEX_APPLICATION. Loop G_F01. Count
insert into lrg_symptoms_select values (APEX_APPLICATION. G_F01 (i));
l_f01: = l_f01 | APEX_APPLICATION. G_F01 (i) | «, » ;
end loop;
APEX_COLLECTION. ADD_MEMBER)
p_collection_name = > 'SPLIT_SYMPTOMS ',.
p_c001 = > l_f01);
Select c001 in: l_f01 of APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";
HTP.PRN (l_f01);
commit;
end;
I have 2 questions here:
1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION
Select c001 in APEX_COLLECTIONS where collection_name = 'TEST_COLLECTION';
But I get the following error
Failed to parse the SQL query:
ORA-00933: SQL not correctly completed command.
How can I access the collection on the page of the modal dialog box?
2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.
The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.
How to set the value of page element in the session?
Thanks in advance
Hina
844372 wrote:
Update your forum profile with a recognizable username instead of "844372": Video tutorial how to change username available
I have 2 questions here:
1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION
Select c001 in APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";
But I get the following error
Failed to parse the SQL query:
ORA-00933: SQL not correctly completed command.
How can I access the collection on the page of the modal dialog box?
Remove the ';' the query.
2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.
The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.
How to set the value of page element in the session?
Set the value of the element in the recall process and use it as the return value:
:p12_selected := ...;
I can't integrate it in your code because I don't understand. Why the TEST_COLLECTION is created and used in a query, but the data added to the collection of SPLIT_SYMPTOMS?
-
Please how can I create a page based on template and save in the specific folder.
Please, I spent two days trying to solve this problem. Here's the situation. I'm trying to create a Web site for our school. I created a master template which I intend to use as a base for each teacher's webpage. I also created folders for each teacher, teachers had to send me their weekly updates what duties inlude, photos and downloads.
Here's the problem: whenever I have to create a page based on the template of the page is created in the root folder. There is no way to create pages in the files of specific teachers. I save the page and try to drag to the respective folder. When I try to save the file, Dreamweaver he re-recorded in the root folder. If I try to view the html file in the folder of the teacher that the overview does not load. I have three books of refernce DW, including the Missing Manual and no of them don't address this problem. Neither is Adobe.
Surely someone here created a page based on a template and placed in a folder without breaking all the paths. Why DW does not provide a way to save a page template based in a specific folder.
Thank you all for responding. The problem was that I was using DW on my macbook. To access save as function I finally understood that you must click on the small triangle next to the name. not the Favorites or recent locations triangle. Lost two days trying to understand cela. Incredible.
-
How to replace the element on the page master on master spread [JS CS5]
Hi all
There is a big media (scripts) on how to replace the element template on a page of a specific document, but my problem is, I've added new Master spread based on a further propagation where newly added distributed Master I need to replace all the elements to master basic page.
pageItems [curPageItem] .override (destinationPage)
works well if you replace the elements of master page on the pages of a document, but what works for replace page elements master master page for example
pageItems [curPageItem] .override (destinationMasterPage)
Thank you
Mac
Similar code worked for me (in CS4 - the machine, I had very practical is the one I use to accompany clients on older versions). Are you sure that your destinationMasterPage is a page and not a spread? This would cause a failure.
Dave
-
To access the elements of the scene, via a SWF file that is loaded inside the scene
-J' I A.fla.
-A.fla includes buttons, video clips and also B.swf is loaded in A.fla with a CHARGER
-I want to access the elements in A.fla, from codes actionscript inside B.fla to change these video clips and buttons based on the actions going on in B.swf
for example, lets say there is an X button in A.fla and there is a button there B.fla, B.swf is loaded into A.fla, and I want the key Y to delete X when you click the button.
General question: to access the elements in a stage, via a file SWF loaded in this stage.
This is a way silly to explain: there is this pregnant mom, a child is loaded inside him, now, I want the codes inside the child, access to MOM
elements, such as lets say, I want the code of the child can make the eyes of MOM flashing faster. logically there is something inside something else, but I want to have access to the bigger picture of what is loaded. I hope I can get my point across.
I repeat what I replied to your other psoting for this same question and adding just a little bit more...
If you load a swf into another using the Loader class, then the charger itself is the parent of the loaded swf file, so MovieClip (parent.parent) could help you target the timeline that the charger was born.
The way to have a loaded file to speak to a parent file is through the sending of events that the parent assigns headphones for after the file has been loaded. Here is a link to an announcement that could help explain how to implement this.
http://forums.Adobe.com/thread/470135?tstart=120
And here's a quick example...
Example:
Add something to raise the event in the child:
dispatchEvent (new Event ("eventTriggered"));
In your SWF to loading/parent, listen for the complete event on the Loader.contentLoaderInfo. In the complete event handler, add a listener for the event on the loaded swf file.
triggered when external swf loading event handler
function loaderCompleteHandler(event:Event) {}
(event.currentTarget.content as MovieClip) .addEventListener ("eventTriggered", eventHandler);
}function eventHandler(event:Event):void {}
trace ("event sent in loaded swf");
}So in your A.swf, you should have the other event and functions of event handler that would take care of control buttons. Event listeners could be assigned to the B.swf after that that it has loaded. In your B.swf you just have it dispatches an event and the A.swf manage self adjustments you need taken care of. This allows the two files to be independent of each other on a functional level.
Regarding the buttons that you want to disable, you can either use the removeEventListener() method to remove the listeners you have assigned, or you can set the mouseEnabled property to false, or you can set the visible property to false.
-
Pages based on the template is displayed in the preview
Hi all. I am a newbie to Dreamweaver and I have a problem with a site that was NOT created by me, but asked me to make a few simple changes to various pages (ha!). I downloaded the previous files of designers (via ftp) and did not transfer anything from the original location. Whenever I open my .shtml files (all) and try to preview in a browser, nothing in the template files mode is displayed.
For example, this is what I see in Dreamweaver (design mode):
and when I saw the file in Firefox or Safari, that's what I see:
I made sure the Styles of rendering/display/display Style is checked indeed.
Any ideas why the model elements show not on the preview? I even created a new page based on the template with the same results. Just for fun, the code for the template file is below.
Thank you
Kim
------------------------------< ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict / / IN" "http://www.w3.org/TR/html4/strict.dtd" > ""
< html >
< head >
<!-TemplateBeginEditable name = "doctitle"-->
< title > Coastal insulation LLC < /title >
<! - TemplateEndEditable - >
< meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"
<!-TemplateBeginEditable name = "head"->
< name meta = "keywords" content = "" >
< name meta = "description" content = "" >
<! - TemplateEndEditable - >
"< link href="/css/global.css "rel ="stylesheet"type =" text/css">
"< link href="/css/section.css "rel ="stylesheet"type =" text/css">
"< link href="/css/print.css "rel ="stylesheet"type =" text/css"media ="print">
"< link href="/css/handheld.css "rel ="stylesheet"type =" text/css"media ="Pocket">
"<!-[if lt IE 6] > < link rel ="stylesheet"type =" text/css"media ="screen"href="/css/ie6.css "/ > <! [endif]-->
<!-TemplateParam name = "under title" type = "boolean" = "true"-> value <!-TemplateParam name = 'optional-lfContent' type = 'boolean' = 'false'-> value <!-TemplateParam name = "captionPhoto" type = "boolean" value = "true"->
< / head >< body leftmargin = "0" topmargin = "0" marginWidth = "0" marginheight = "0" >
"<!--virtual="/includes/masthead.ssi #include "-->
<! - START content - >
< div id = "content" >
<! - left column of DEPARTURE - >
< div id = "lfColumn" >
"<!--virtual="/includes/lfNav.ssi #include "-->
<! - left content optional START - >
< div id = "lfContent" >
<!-TemplateBeginIf cond = "_document ["option lfContent"]"--> <!-TemplateBeginEditable name = "optional-lfContent"-->
the optional content < p > < /p > here
<! - TemplateEndEditable - > <! - TemplateEndIf - > < / div >
<! - left content optional END - >
< / div >
<! - left column of END - >
<! - BEGIN right column - >
< div id = "rtColumn" >
<!-TemplateBeginEditable name = "title"--> < h1 > title < / h1 > <! - TemplateEndEditable - >
<!-TemplateBeginIf cond = "_document ["sub-headline"]"--> <!-TemplateBeginEditable name = "Sub headline"--> < h2 > under title < / h2 > <! - TemplateEndEditable - > <! - TemplateEndIf - >
<!-TemplateBeginIf cond = "captionPhoto"--> <!-TemplateBeginEditable name = "captionPhoto"->
< ul class = "captionPhoto" >
image
Photo < /li > < li > legend
< /ul >
<! - TemplateEndEditable - > <! - TemplateEndIf - >
<!-TemplateBeginEditable name = "bodyCopy"->
Insert here the contents of < p > < /p >
<! - TemplateEndEditable - > < / div >
<!--> END right column
< br class = 'clear' >
< / div >
<! - END content - >
"<!--virtual="/includes/footer.ssi #include "-->
< / body >
< / html >Just a guess, but it seems that the site uses SSI (shtml extension and there is a ssi include in your model). You will probably need a testserver running (like XAMPP) on your local system for this preview in a browser.
Friend
-
Can adjust the elements on the page in MX, but not in CS3
I don't know what to call this problem, then couldn't do a search on this forum. I have two computers, which works in Dreamweaver MX, the other running CS3. I can access different elements of a particular set of web pages in MX, for example to resize a photo. But in CS3 all the page elements in the div "content of" highlight as a single element, so that, for example, if I try to remove a Word from the text, the entire content - images, text, etc. - is removed instead. I made these pages in MX. I guess there are some default setting in CS3 which prevents me from access to individual content items. Here's an example page:
http://www.Colorado.edu/English/faculty/facpages/Winokur.shtml
Can someone help me? Thanks in advance.On Friday, July 4, 2008 03:14:42 + 0000 (UTC), "Zaphod234".
wrote: > But in CS3 all elements on the page in the
> 'content' div tag nail as one of the singular elementsShe did this with positioned elements. You can double-click on it to
change inside.Gary
-
I want to prevent access to the ' topic: support ' page. How to accomplish this task?
You must create the userContent.css file and possibly the record chrome as well if they do not yet exist.
Note that the names are case-sensitive.- Create the folder chrome (lowercase) in the .default < xxxxxxxx > profile folder if the folder does not exist
- Use a text editor like Notepad to create a file userContent.css (new) in the folder chrome (file name is case sensitive)
- Paste the code into the userContent.css file in the Editor window
- Make sure that you select "All files" and not "text files" when you save the file via "save file as" in the text editor as userContent.css.
Otherwise, Windows can add a hidden .txt file extension and you end up with one does not not userContent.css.txt file
-
You will return the "Select an element in the page" button right in Inspector?
The 'select an element on the page' is to the extreme left now. Since ver.32 FF. As seen in this image:
https://MDN.mozillademos.org/files/8315/Inspector-select-element-fx32.PNG
Change for the worse in my opinion. You will return it right into the next version? Thank you.N ° it is always on the far left in the current construction of 35.0a1 of Firefox.
All Toolbox items are on the far right, including the gear button options to define what items to display.
-
to access the variables in a page in another page qml
Hey gang,
I've been watching some of the other problems autour to access the variables from one page on another page qml qml, and I can't get this to work.
I have a page, main.qml with a NavigationPane. The NavPane has a Page and some containers.
I have a property defined in the NavigationPane like this:
NavigationPane { id: mainNav backButtonsVisible: true property int customInt: 2 onCustomInt: { console.log(" -------------> App: customInt"); }
I have a ComponentDefinition for next page, called SettingsPage.qml. In the settings, I have two drop-down lists and a slider.
Page { actionBarAutoHideBehavior: ActionBarAutoHideBehavior.HideOnScroll id: pgSettings ScrollView { id: pageScroller scrollViewProperties.initialScalingMethod: ScalingMethod.AspectFit Container { topPadding: 25 bottomPadding: 25 rightPadding: 25 leftPadding: 25 Label { text: "Settings" textStyle.fontSize: FontSize.XLarge } Container { id: dropDown1 topPadding: 25 bottomPadding: 25 rightPadding: 25 leftPadding: 25 DropDown { id: ddOption1 title: "Option 1" verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center Option {id: o1o1; text: "One"; } Option {id: o1o2; text: "Two"; } Option {id: o1o3; text: "Three"; selected: true; } Option {id: o1o4; text: "Four"; } onSelectedIndexChanged: { switch (selectedIndex){ case 0: // console.log(" -->App: Option 1 Selector, On"); customInt = 0; break; case 1: // console.log(" -->App: Option 1 Selector, Off"); customInt = 1;; break; case 2: // console.log(" -->App: Option 1 Selector, Top (default)"); customInt = 2; break; case 3: // console.log(" -->App: Option 1 Selector, Bottom"); customInt = 3; break; } } } } }
I look forward to the the statement will change the level property NavPane, called customInt, but it doesn't.
the output of the console shows that the ' App: Option 1 selector "gets selected in the dropdown list selected index changes, but the onCustomInt() funtion slot never gets called.
I tried "mainNav.customInt = X" too, but the parameters cannot solve the mainNav. I get "unknown symbol 'mainNav'" error with alittle bulb.
what I am doing wrong?
When you call the second page, SettingsPage.qml, set it as an object.
Don't do the following:
attachedObjects: [ ComponentDefinition { id: settingsPageDefinition source: "SettingsPage.qml" } ]
Follow these steps:
attachedObjects: [ // Definition of the second Page, used to dynamically create the Page above. ComponentDefinition { id: settingsPageDefinition Settingspage{ } } ]
Then the second page main navigation page in the IDE. I had the same problem with a multi-page application, I created.
Maybe you are looking for
-
How can I turn on/off the blue LEDs on the Satellite A100?
Hello Does anyone know how to turn the blue LEDs under the touchpad? They are very nice, but when I go to sleep they light a lot and it is a small problem. Maybe someone can help me or suggest something else.Thanks for any answers Emil
-
Blu Ray error "Mediasmart DVD does not support playback of Blu - Ray disc on a virtual device"
Blu - Ray has suddenly stopped playing Blu-Rays, with the error message "Mediasmart DVD does not support playback of Blu - Ray disc on a virtual device. A Blu - Ray disc must be inserted into a BD - ROM drive for reading. » I don't think it's a hardw
-
virus scan:-"computer on or off, for the scan to take place?
In Microsoft Security Essentials -Run a scan scheduled... ticked, Scan type... Full scan... ticked, When... Sunday... Checked, Around... 02:00... checked, Search for the latest viruses... Checked, «Start the scheduled scan uniquementlorsque my comput
-
Analog output on USB6008 in C ANSI does not work
I tried to program the analog output on a device of USB6008 under MSVC ++ 6.0 with the latest NOR-DAQ 8.8. The lines of the example of the ANSI C program ' MultVoltUpdates - IntClk.c ' work very well with a device emulator, but not as soon as I try t
-
The printer "communication not available" error in Windows 7
Printer Communication errors__My printer worked fine for the last 2 years - now get "communication not available" - reinstalling printer with manufacturing CD etc. - tried to download the latest drivers, might work once & then the next time I get the