Create Page Item on Specific Page/Position
Hi
This is how I create new rectangle:
mySpecs = {
appliedObjectStyle: myobjectStyle,
geometricBounds: myBounds,
label: "FrameFG"
myBox = app.activeDocument.rectangles.add(myLayer, mySpecs);
Unfortunately this always results in a rectangle on page 1 at 0,0
coordinates. So I have to do following:
myBox.move(myPage);
myBox.move([myX,myY]);
I would like to specify these when adding the rectangle, but I didn't find a
way yet. Can anyone help me please?
Thanks
Thank you Peter<br /><br />I didn't realize "page" object has the "rectangles" properties.<br /><br />ExtendScript is quite intuitive. But I sometime manage to miss the obvious<br />and spend hours looking for "containingPage" property of a pageItem :(<br /><br /><br />On 10/11/08 13:21, "Peter Kahrel" <[email protected]> wrote:<br /><br />> To create a rectangle on a specified page:<br />> app.activeDocument.myPage.rectangles.add(myLayer, mySpecs);<br />> <br />> <br />> As to the rectangle's position, maybe there's something wrong with your<br />> geometric bounds.<br />> <br />> Peter
Similar Messages
-
Creating page items from pl/sql procedure and using them on a page
I have a page containing 2 select lists (P21_DEPARTMENTS and P21_DATE). Originally I added them as items that were "select list with submits". The problem is that based on the clearance level of the currently logged on user I only wanted the P21_DEPARTMENTS to be a select list if the user was an administrator. If however the user is not an admin then I want the page to have a hidden form field called P21_DEPARTMENTS that stores the user's department and has a label item that has the department name.
There is also a report region that generates a table based on the department selected from the select list (if the user is an admin) or the value stored in the hidden form field if the user is not.
My problem is that I cannot have both those items on the same page and use the HTML built-in authentication to determine which item should be rendered because I need to use the same ID for both items so that the stored procedure in my report region doesn't break. HTML does not permit items to share the same ID.
I tried to circumvent the problem by creating a stored procedure that performs all of the item rendering in the procedure and uses "htp.p()" to output all of my HTML code. This solution would allow me to pass a parameter into the procedure informing me as to whether or not the user is an administrator. If the user is an administrator the procedure would use a conditional statement and render a select list. If not, the hidden form field and label option would be used instead.
I finally got the stored procedure working perfectly. Now I am encountering the most bizarre thing. Since the "select list with submit" was not working (I used the same code that gets generated when I created other items using htmlDB's GUI) I decided to use a JavaScript function instead that gets triggered by the onChange event. I send along the value that is currently selected in the select list and in the function I set:
location.href='http://www.myoraclesite.com/pls/htmldb/f?p=111:21:729740000000000000::NO::P21_DEPARTMENTS:1';
In theory this should work. The problem is that it doesn't. The page reloads and the P21_DEPARTMENTS select list is not pre-selected.
The only thing I can think of is that when htmlDB generates page items that you've created with it's own admin tool it assigns some internal guid or something as opposed to when someone tries to generate dynamic page items of their own from a pl/sql procedure it's like the application doesn't even know they exist.
Any help would be GREATLY appreciated.
My only other solution would be to create a totally separate page (one for admin and another for non-admin). I would really like to avoid this.
Thanks in advance.I would love to be able to generate my menus and
various other items in my htmlDB applications in much
the same way I can using ASP, PHP and Cold Fusion.
Users should have the ability to write server-side
code wherever they feel like it. The way htmlDB works
right now I spend more time trying to figure out how
to create simple effects and generate simple
interfaces when I need to be building a portal. Ami - it's important to understand that HTML DB is not like other languages. Thus, trying to force concepts which are common in other languages into HTML DB will often result in more work.
It's definitely worth the time to go over the HTML DB 2-day Developer, which can be found here: http://www.oracle.com/technology/products/database/htmldb/pdf/B14377_01.pdf
I can build a portal using Classic ASP, C#, PHP or Cold
Fusion in like 1/10 of the time that it takes me to
build one using htmlDB. I understand that this is not
meant for the hard-core programmer but no web
programming application in today's day and age should
prevent experts from getting under the hood.And I can build a Portal in HTML DB in 1/10 the time it will take me to do it in any other language. It's like anything else - proficiency comes with practice and work.
As for getting under the hood, there is plenty of places you can do that with HTML DB. Keep in mind that HTML DB itself is an HTML DB application, so the limits on what you can build with HTML DB are virtually limitless.
Sorry for the vent there. After spending the last 2
days trying to figure out how to implement such a
straightforward thing and now being informed that it
can't be done kind of bugged me.I understand your frustration, as I've been there before. My rule for beginners is that if you are writing more than a line or two of code in the first week, you're doing something wrong. Stop, take a break, and then use the ample resources (including searching this forum) to help solve your problem. There are plenty of resources available for you to learn about HTML DB on the HTML DB home page: http://otn.oracle.com/htmldb
Good luck,
- Scott - -
Creating pages,item WITH approval.
Hi,
I found out how to create a page and add an item to that page automatically. But now I need to find out how to use this with approval.
1) I noticed that approval only exists on the item level and not the page level. Is this correct?
2) How can I make that the page/item I create automatically, has to be approved? The approval will be done in a normal way, through the existing approval portlet. Normally one should enable approval control on the page, create a user and give this user the 'manage items with approval' rights, all items published by this user, will not be published before approval.
Can someone provide an example, on how to mark an item for approval programmatically?
The function add_item contains a parameter 'p_author - Author of the item.'. Can this be used, as I enable the author to 'manage items with approval'?
Cheers
B.
Message was edited by:
RatjeuhEven If I bypass the public user problem and do the following:
-- create new page
l_new_page_id := wwsbr_api.add_folder( p_caid => l_caid,
p_name => l_uppertext,
p_display_name => l_text,
p_type_id => wwsbr_api.FOLDER_TYPE_CONTAINER,
p_type_caid => wwsbr_api.SHARED_OBJECTS
-- Process cache invalidation messages.
wwpro_api_invalidation.execute_cache_invalidation;
portal.wwctx_api_private.set_context( p_user_name => 'NEEDAPP', p_password => 'dummy');
-- create new item
l_text_item := 'This is a new item on the new page';
l_new_item_master_id := wwsbr_api.add_item( p_caid => l_caid,
p_folder_id => l_new_page_id,
p_display_name => 'This is the display name',
p_type_id => wwsbr_api.ITEM_TYPE_TEXT,
p_type_caid => wwsbr_api.SHARED_OBJECTS,
p_region_id => 0,
p_text => l_text_item
-- Process cache invalidation messages.
wwpro_api_invalidation.execute_cache_invalidation;
wwctx_api.clear_context;
owa_util.redirect_url(curl => l_back_url || '&' || l_reference_path || '.p_text=' || l_text);So, I change the context in my code to make sure that the item is created by the user NEEDAPP. This works, the page is created first (by the user who invoked the portlet) and an item is placed on the page. I can even see the item showing up in my 'PENDING ITEMS LIST' for approval.
BUT
After the procedure I am NOT redirected to the page where I submitted the form bu instead I get an error:
Fout: De listener heeft het volgende bericht geretourneerd: 503 Service Unavailable
What is the problem? -
Blank row added after cancel button on create page
Hi All,
I have a create item page where I insert items into the item table in the database.
On press of the cancel button on this create page, the control reaches a itemlist page with my old search criteria and result but with a new blank row added to it.
Anybody know what's wrong?Sorry, I misunderstood your previous question. When the cancel button is pressed. I am using pageContext.forwardImmediately with parameters to forward back to my search page. Then in the search page controller I call the AM initQuery method to run the query. My initQuery method has the following code,
StringBuffer whereClause = new StringBuffer(200);
Vector parameters = new Vector(3);
int clauseCount = 0;
int bindCount = 0;
setWhereClauseParams(null);
if ((Program != null) && (!("".equals(Program.trim()))))
whereClause.append("PROGRAM = :");
whereClause.append(++bindCount);
parameters.addElement(Program);
clauseCount++;
if ((PId != null) && (!("".equals(PId.trim()))))
Number PIdNum = null;
try
PIdNum = new Number(PId);
catch(Exception e)
throw new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER");
if (bindCount > 0)
whereClause.append(" AND (P_ID = :");
else
whereClause.append(" (P_ID = :");
whereClause.append(++bindCount);
whereClause.append(")");
parameters.addElement(PIdNum);
clauseCount++;
setWhereClause(whereClause.toString());
if (bindCount > 0)
Object[] params = new Object[bindCount];
parameters.copyInto(params);
setWhereClauseParams(params);
executeQuery(); -
hi
i need to create pages in chinese
i copy and paste text i got from the translator, most text
is ok but here
and there some characters are replaced by question marks.
i tried several doctypes, i tried without, ( i just copy from
chinese sites)
on the web i see chinese pages without question marks, but
pages i create
are full of them.
i use:
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
any idea?
any tutorial?
thanks
lenny.oO(lenny)
>i'm sorry but i don't understand. (maybe it's my
english).
>
>the first line is a simple declaration of charset
It's more a fake than that. What matters is the real HTTP
header, sent
by the server along with the requested page. Of course if
that header is
missing in the server's response, then the browser will look
at the meta
data. But in the WWW this is not the recommended way to
declare the
character encoding (the meta stuff might play a role for
local files if
there's no web server involved, though).
It's even a logical twist: The browser has to decode the
document in
order to figure out how to decode it. In most cases this will
work,
because most encodings are somewhat ASCII-compatible. But
nevertheless
it's ugly and illogical, at least for me.
>the srcond line must be added.
Same thing. It's also just a poor replacement for a real
header or the
mentioned 'lang' attribute.
>we checked in several computers (also in china) and it
works.
>
>in your opinion, what am i doing wrong? how should it be
done in your
>opinion ?
As I've already said. I always send the character encoding in
the
Content-Type header, which is returned by the server. How to
do that
depends on the server and whether you're using plain HTML or
some
scripting like PHP for example. As an example: On Apache
servers and for
plain HTML files it's usually enough to put an .htaccess file
into the
website's root directory with this line
AddCharset UTF-8 .css .html
to let the server deliver all those files with a correct
Content-Type
header and charset information.
For defining the language the preferred way is the 'lang'
attribute,
usually applied to the 'html' element:
<html lang="zh">
Here's some further reading about the language issue,
discussing the
different possible ways and their pros and cons:
http://www.w3.org/International/questions/qa-http-and-lang
Especially see this part:
http://www.w3.org/International/questions/qa-http-and-lang#choosing
Some quotes:
| To specify the language of fragments within an XHTML
document there is
| no other choice but to use the lang and/or xml:lang
attributes on the
| appropriate elements. The HTTP header or meta element
information are
| not relevant here.
(For HTML documents only the 'lang' attribute matters.)
| [...] the use of the meta element is not directly specified
in the
| HTML specification, and there is no standard for how it
should behave
HTH
Micha -
Dreamweaver 8 is removing forward slash when creating pages
Dreamweaver 8
Links set to be relative to Site Root
If I create a template that has ../index.php as the home link, and also create a few pages from that template, the links on those pages all start with a forward slash:
/stuff/
However, if I then change the template to have a home link like this:
and then save, all the links in the already-built pages suddenly lose their site-root forward slash and instead look like this:
stuff/
and the home link now looks like this in the created pages:
../ (yep, it stays like that)
I did not change links to be relative to document
Hmmmmm.....I'm noticing that it's occurring when I edit the template, when you then save the edited template, it updates all the pages made with that template but then all the links are now without the front forward slash, so it looks like this is getting triggered when the template is edited
It doesn't change how the links are in the template ../whatever, but all the updated links in the built pages now do not have a front forward slash
And once it changes to the non-forward slash version, it never goes back, it stays as link/
Does anyone know what might be wrong? I need all the links to stay as /relative-to-site-root/
Thanks> Does anyone know of a setting or fix for this problem
It was regarded as a bug in previous versions, and was fixed
in the 8.0.2
release. In normal circumstances, ALL links in a template
file must be
relative to the template document, not relative to where you
intend to save
the child pages. Thus, there would be no way to have a link
in your
template document like the first one you show, e.g.,
<img src="whatever.png"....
*unless* the file was actually in the Templates folder (a bad
idea).
In 8.0.2, you can set your PREFERENCES for the Templates
category to NOT
MANAGE relative links. Be aware that this may have unintended
consequences
for you - specifically regarding other relative links in your
site.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"pgs_it" <[email protected]> wrote in
message
news:eivj88$361$[email protected]..
> When creating new pages from templates in Dreamweaver
8(Ver 8.0.2). The
> full
> path for images is not created
> i.e. in template the code is <img
src="main_page_logo.png" width="814"
> height="172" longdesc="Main Page Logo" />
> In the new file the code should be :-
> <img src="../../Templates/main_page_logo.png"
width="814" height="172"
> longdesc="Main Page Logo" />
> but only :-
> <img src="main_page_logo.png" width="814"
height="172" longdesc="Main Page
> Logo" /> is in the code.
> but this does work in Version 8.0.
> Does anyone know of a setting or fix for this problem
>
>
> -
Create page that contains buttons
I need to create page that contains many buttons each one is used for opening a specific page.
Can anybody help me to give the steps?Hi,
I think you need help for HTML DB.
- Go and create page (could be HTML)
- Then add region (form region)
- Create buttons. Every button has ability to redirect to Page in this Application or URL. Just choose any page in the application.
- On each step you can hit help to learn details.
- There is a function “Create Multiple Buttons”
Konstantin
[email protected] -
Error in Step 4.5 of the create page
Hi all,
In running the CREATE PAGE applications... At Step 4.5 On debugging at this step the Search page opens but on clickin on the Create Employee details it returns an error page as follows.....
Can any one pleae help me out in solving this issue???
Exception Details.
oracle.apps.fnd.framework.OAException: No data found for region (/<yourname>/oracle/apps/ak/employee/webui/EmployeePG).
at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:392)
at OA.jspService(_OA.java:80)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
Exception:
oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /<yourname>/oracle/apps/ak/employee/webui/EmployeePG, XML Path = D:\jdevhome\jdev\myclasses\JRADXML;D:\jdevhome\jdev\myprojects;D:\jdevbin\jdev\oamdsxml\fwk. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1451)
at oracle.adf.mds.MElement.findElement(MElement.java:97)
at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:392)
at OA.jspService(_OA.java:80)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Exception:
oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /<yourname>/oracle/apps/ak/employee/webui/EmployeePG, XML Path = D:\jdevhome\jdev\myclasses\JRADXML;D:\jdevhome\jdev\myprojects;D:\jdevbin\jdev\oamdsxml\fwk. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1451)
at oracle.adf.mds.MElement.findElement(MElement.java:97)
at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:71)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:392)
at OA.jspService(_OA.java:80)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Thanks,
GaneshThis is my Controller code for the Newly created page....
package oracle.apps.fnd.employee.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OADialogPage;
import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
* Controller for ...
public class EmployeeCreateCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
// If isBackNavigationFired = false, we're here after a valid navigation
// (the user selected the Create Empoyee button) and we should proceed
// normally and initialize a new employee.
if (!pageContext.isBackNavigationFired(false))
// We indicate that we are starting the create transaction (this
// is used to ensure correct Back button behavior).
TransactionUnitHelper.startTransactionUnit(pageContext, "empCreateTxn");
// This test ensures that we don't try to create a new employee if
// we had a JVM failover, or if a recyled application module
// is activated after passivation. If this things happen, BC4J will
// be able to find the row that you created so the user can resume
// work.
if (!pageContext.isFormSubmission())
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("createEmployee", null);
// Iniitalize the ApplicationPropertiesVO for PPR.
am.invokeMethod("init");
else
if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"empCreateTxn", true))
// We got here through some use of the browser "Back" button, so we
// want to display a stale data error and disallow access to the page.
// If this were a real application, we would probably display a more
// context-specific message telling the user she can't use the browser
// "Back" button and the "Create" page. Instead, we wanted to illustrate
// how to display the Applications standard NAVIGATION ERROR message.
OADialogPage dialogPage = new OADialogPage(NAVIGATION_ERROR);
pageContext.redirectToDialogPage(dialogPage);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
} -
How to retrieve the Page ID of newly created page in site pages library using javascript
I am creating the page programmatically under site pages library and want to get the ID of that newly created page.
Hi,
The following JavaScript Code for your reference:
<script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"> </script>
<script type="text/javascript">
$(document).ready(function () {
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Site Pages')/items?$select=ID&$orderby=Created desc&$top=1";
// execute AJAX request
$.ajax({
url: requestUri,
type: "GET",
headers: { "ACCEPT": "application/json;odata=verbose" },
success: function (data) {
alert("The newly created page ID is " + data.d.results[0].ID);
error: function () {
alert("Failed to get customer");
</script>
Best Regards
Dennis Guo
TechNet Community Support -
Freeze page position when tree expands
I have a tree with quite a few nodes. I scroll down the page . When I expand a node by clicking on the (+) I am taken back to the top of the page. This is very annoying. How do I stay in the same page position where the node is when I click on a node and expand it?
I am aware of the X_POS, Y_POS scroll javascript code but it seems that the page is not submitted to set these items when you click on the (+).
Any ideas are welcome.
Paul PHi Paul,
I did that by updating the template settings on the Tree definition itself (click on the Tree link for your region to get to this).
In the Before Tree setting, I added the following above the TABLE tag:
<div style="height:200px; overflow-y:scroll;">and in the After Tree setting, I added the following below the close TABLE tag:
</div>Obviously, you can change the height to any value you need. You can also add in a width style as well, if required.
Andy -
LOV related issue in the create page
Hi,
I have created a search page and have made 3 lovs for 3 different search items.
Everything works fine in the search page.
Then I went ahead and created a Create Page and in this page, I am trying to reuse the LOVs that I made for the Search page.
But whenever I click on the LOV in the Create Page , it takes me to the Search Page.
I am not understanding the reason for this.
I looked at all the AM Definitions and everything is properly set.
Can anyone please let me know what might be the reason for this.
ThanksHi,
I have this piece of code in the controller of the create page
===============================================================
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("Apply")!=null);
OAViewObject vo = (OAViewObject)am.findViewObject("AccountsVO1");
String setofbooksName = (String) vo.getCurrentRow().getAttribute("SetOfBooksName");
String LookupType = (String) vo.getCurrentRow().getAttribute("LookupType");
String LookupCode = (String) vo.getCurrentRow().getAttribute("LookupCode");
String Description = (String) vo.getCurrentRow().getAttribute("Description");
String OrclSegment1 = (String) vo.getCurrentRow().getAttribute("OrclSegment1");
String OrclSegment2 = (String) vo.getCurrentRow().getAttribute("OrclSegment2");
String OrclSegment3 = (String) vo.getCurrentRow().getAttribute("OrclSegment3");
String OrclSegment4 = (String) vo.getCurrentRow().getAttribute("OrclSegment4");
String OrclSegment5 = (String) vo.getCurrentRow().getAttribute("OrclSegment5");
String OrclSegment6 = (String) vo.getCurrentRow().getAttribute("OrclSegment6");
String OrclSegment7 = (String) vo.getCurrentRow().getAttribute("OrclSegment7");
String LgcySegment1 = (String) vo.getCurrentRow().getAttribute("LgcySegment1");
String LgcySegment2 = (String) vo.getCurrentRow().getAttribute("LgcySegment2");
String LgcySegment3 = (String) vo.getCurrentRow().getAttribute("LgcySegment3");
String LgcySegment4 = (String) vo.getCurrentRow().getAttribute("LgcySegment4");
String LgcySegment5 = (String) vo.getCurrentRow().getAttribute("LgcySegment5");
String LgcySegment6 = (String) vo.getCurrentRow().getAttribute("LgcySegment6");
String LgcySegment7 = (String) vo.getCurrentRow().getAttribute("LgcySegment7");
String EnableFlag = (String) vo.getCurrentRow().getAttribute("EnableFlag");
Date StartDateActive = (Date) vo.getCurrentRow().getAttribute("StartDateActive");
Date EndDateActive = (Date) vo.getCurrentRow().getAttribute("EndDateActive");
am.invokeMethod("apply");
MessageToken[] tokens = { new MessageToken("LOOKUP_TYPE",LookupType),
new MessageToken("LOOKUP_CODE",LookupCode)};
OAException confirmMessage = new OAException ("XMCI","XMCI_RS_TEST_MSG",
tokens,OAException.CONFIRMATION,null);
pageContext.putDialogMessage(confirmMessage);
pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/ap/accounts/webui/AccountsSearchPG",
null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
======================================================================
am.invokeMethod("apply");
MessageToken[] tokens = { new MessageToken("LOOKUP_TYPE",LookupType),
new MessageToken("LOOKUP_CODE",LookupCode)};
OAException confirmMessage = new OAException ("XMCI","XMCI_RS_TEST_MSG",
tokens,OAException.CONFIRMATION,null);
pageContext.putDialogMessage(confirmMessage);
pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/ap/accounts/webui/AccountsSearchPG",
null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
this piece of code gets fired whenever i select on the LOV item on the create page.
so it takes me to the search page on the click of the LOV button
Could anyone let me know how can I avoid this as I want the whole code to fire only when the user clicks on the APPLY button
Thanks -
Can I create page programmatically ?
Hi
I want to create pages by code using pdk PL/SQL or PDK Java.
Is it possible ? How can I do this (API, etc.) ?
Thanks in advance
Alain.I did this using an unpublished API - it took some experimentation but worked great at the end. I used a page template in release 2 of Portal. the idea was that when a user added a project we would programatically create a page for that project. In that manner their portal would end up with several hundred pages, one for each project, that were created and look similar as they added project information for their company. Here is an example from the code using Oracle's API, wwpob_api_page.create_page - if you open up the specification for this package in a pl/sql browser such as TOAD you will see some comments that help explain how to use it:
p_page_id := WWPOB_API_PAGE.create_page
(p_id => null
,p_parent_id => 1
,p_type_id => WWPOB_API_PAGE.PAGETYPE_PORTLETS
,p_type_siteid => 0
,p_type_value => 1
,p_name => p_page_url_info
,p_title => v_page_title
,p_category_id => null
,p_site_id => p_page_group_id
,p_plsql_executemode => null
,p_username => v_user_name
,p_description => v_page_description
,p_image => null
,p_titleimage => null
,p_rolloverimage => null
,p_styleid => v_style_id
,p_style_siteid => 0
,p_exposure => WWPOB_API_PAGE.DONTEXPOSE_AS_PORTLET
,p_ispublic => WWPOB_API_PAGE.PAGE_PRIVATE
,p_inheritpriv => WWPOB_API_PAGE.OWN_PRIV
,p_isready => 1
,p_cachemode => WWPOB_API_PAGE.CACHE_MODE_PING
,p_cacheexpires => null
,p_template_id => p_template_id
,p_template_siteid => p_page_group_id
,p_allow_style => WWPOB_API_PAGE.NO_PAGE_STYLE
,p_allow_acl => WWPOB_API_PAGE.ALLOW_PAGE_ACL
,p_istemplate => WWPOB_API_PAGE.PAGE_TEMPLATE_NO
,p_dav_id => null
,p_init_jspfile => null
,p_displaybanner => WWPOB_API_PAGE.SHOW_BANNER
,p_region_type => WWPOB_API_REGION.region_type_portlet
,p_create_region => true
,p_navpage_id => null
,p_navpage_siteid => null
,p_uitemplate => null
,p_template_ispublic => WWPOB_API_PAGE.PAGE_TEMPLATE_PRIVATE
,p_use_def_template => false
,p_copy_from_template => true
Good luck - Art -
Error while creating a new entity row in Create Page
Hello all,
I am facing a problem while coming to the Create Page from the Search page.In the process request of the controller i am initializing the row of the table like below
public void createxx()
xxVOImpl vo = this.getxxVO1();
vo.setMaxFetchSize(-1);
if (!vo.isPreparedForExecution())
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
which has a primary key while initializing only i am getting bellow exception.
oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for xxEO
Kindly helpHi,
replace
xxVOImpl vo = this.getxxVO1();
vo.setMaxFetchSize(-1);
with
OAViewObject vo = getxxVO1();
vo.setMaxFetchSize(0);
Thanks,
Gaurav -
Creating Page Format In Quality
I want to create a new page format, for the purpose I did the following...
spad-> Full Administration-> Device Types-> Page Format-> Change-> Create-> (Page Format=ZA4, Orientation=Landscape, Paper Size (Width=215 mm, Height=300 mm))
When I click on save, a pop window opens and shows the massage Object can only be created in SAP package
Pressing enter it asks Package under attributes
What to select in Package is my problem? Please help....
Lalit KumarOn the save Option Select Local object or Enter $TMP in the package field.
it is not working:
*Create a package in SE80.
And enter the package name.*
Can you please provide me the steps to create package??
Lalit Kumar -
I am technologically challenged senior citizen who recently upgraged to Pages 5.1 from what I think was iWorks '08. I now find that I am not able to open any of my important previously created Pages documents. I receive a pop-up that tells me that they are too old and must be saved in Pages'09 first. I no longer have the disk for iWorks 08 and don't have Pages '09 on my iMac. Any ideas how I might get these documents open?
You should have the old Pages '08 inside the iWork folder, inside your Applications folder.
Open your old files in Pages '08 > Menu > File > Export > Word
Pages 5 can then open that Word file.
Peter -
How to create page breaks in numbers?
How do I create page breaks in iCloud Numbers? The spreadsheet I created is 4-5 pages long, but it saves as one long scrolling document, and when it prints, all 4-5 pages are seen (very small, unreadable font) on a single page. Any ideas?
Thanks!
DaveThis excel feature is not exactly available in Numbers.
Here we may create up to 255 sheets in a document. They are reachable from the thumbnails area.
And each sheet may embed up to 255 tables also reachable from the thumbnails area.
Think different or use Excel !
Yvan KOENIG (from FRANCE mardi 23 juin 2009 12:20:18)
Maybe you are looking for
-
hi all, My BPM flow starts with a single message that I split using a message map into a list of messages into a block which is foreach mode to be sent synchronously one by one splitted messages to an Oracle stored procedure via the JDBC adapter. Aft
-
Named Destinations with window.open
I have a ColdFusion application that opens a reference document to a specific point of reference. I had been using an html page with anchors for the reference document but would like to use PDF with named destinations. The code I am using is from a
-
Slow and laggy, tool bar too large
Annotation very slow and laggy draw speed when using s pen for Samsung note 4. Tool bars are too large on this device, taking too much space that I can't annotate properly
-
Videos in iPhoto are now all 0:00. Why?
Hi, I have opened up my iPhoto and all the vidoes that have been imported from my Canon IXUS that were working previously have now been reduced to 0:00. Does anyone have a reason for this and can they help me get them back? It opens in quicktime but
-
Does anyone know what happened to the iphone app Podcast Pro?
I have been using Podcast Pro for at least a couple of years. About two months ago it quit being able to to update podcasts. None of the other podcast players come close to it in terms of ease of usability and control of downloaded podcasts,