Procedure Links for Custom Items & Folders
I created both a custom item type and custom folder type. Each was given a procedure call to a form application component created in Oracle Portal. When I created the custom item type, I checked "Display Procedure Results With Item". I used the following HTTP link: http://collins:7777/pls/portal30/portal30.wwa_app_module.new_instance?p_moduleid=1710562983
When I view a folder of the custom folder type or a folder containing an item of the custom item type, the folder displays briefly and then is replaced with a full browser version of the form.
Is it possible to get the form to display within the folders instead of replacing the folder in the browser window?
I am running version 3.0.6.6.5 on Solaris 2.6.
Fran,
Try using the component's show procedure. On the component's Develop tab, click the Show link next to Call Interface to see the structure of the URL to call the component directly.
Jerry
Similar Messages
-
Display filename in url for custom items
Hi - I'm rying to find out how to open a word doc in a browser and display the FILENAME (xyz.doc) instead of the NAME (123.doc) - which comes from the wwdoc_document$ tbl .
The word document was added to a portal page via a file attribute within custom text item. It seems that the document is not referenced within the actual page group when using the custom item compared to using standard file item format.
I can open the doc in browser using the NAME format - eg, .../portal/pls/portal/docs/1/1234.doc but I need to open via the PAGEGRP/FILENAME format eg, .../portal/page/portal/PAGEGRP/xyz.doc
BTW - We're using portal 10.1.4
Any ideas appreciated
Cheers,
JustinHi guys,
I finally discover the solution. Just try this:
First, create a Procedure like this:
PROCEDURE ShowSaveDoc (pFile wwdoc_document$.name%TYPE) IS
v_BlobContent wwdoc_document$.blob_content%TYPE;
v_MimeType wwdoc_document$.mime_type%TYPE;
v_Filename wwdoc_document$.filename%TYPE;
BEGIN
SELECT blob_content, mime_type, filename
INTO v_BlobContent, v_MimeType, v_Filename
FROM wwdoc_document$
WHERE name = pFile;
owa_util.mime_header(v_MimeType, FALSE);
htp.p('Content-Length: ' || DBMS_LOB.getlength(v_BlobContent));
htp.p('Content-Disposition: attachment; filename="' || v_Filename || '"');
owa_util.http_header_close;
wpg_docload.download_file( v_BlobContent );
EXCEPTION
WHEN NO_DATA_FOUND THEN
htp.p('Error - No Data Was Found');
WHEN OTHERS THEN
htp.p('Error - ' || || SQLERRM);
END;
On the HTML code where you have the link try this:
htp.p('< a id="someid" title="download" alt="download"
h_ref="/portal/pls/portal/portal.galeria_pkg.showsavedoc?pFile=' ||rec.id_doc || '"> Download '||rec.docDescription||'</a>');
where the rec.id_doc is the wwdoc_document$.name of your document.
Try it and tell me if it worked.
Its Working for me.
Thanks. -
Selecting from wwsbr_all_items for Custom Item Display
I'm trying to call a procedure that will create custom HTML for an item I created. In that procedure I'm trying to get the name of the object I'm passing from the wwsbr_all_items view. However, when I try to select from the view I get the following error
(p_url is a VARCHAR2 with a valid ID number)
SELECT name
FROM wwsbr_all_items
WHERE id = p_url
ERROR:
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "Portal.WWCTX_SSO", line 2954
ORA-06512: at "Portal.WWCTX_SSO", line 3483
ORA-06512: at "Portal.WWCTX_SSO", line 1735
ORA-06510: PL/SQl: unhandled user-defined exception
ORA-06512: at "PORTAL.WWCTX_SSo", line 1578
ORA-06502: PL/SQl: numeric or value error
ORA-06512: at "Portal.WWCTX_SSO", line 1820
ORA-06512: at "Portal.WWCTX_API", line 199
I also get a similar error if I try to select * from the view. Any ideas??
Thanks!I believe you need to set your context up. Try the following. You will need to substitute with your own parameters.
portal.wwctx_api_private.set_context(p_user_name => 'PORTAL',
p_password => 'password', p_update_flat => true);
You may have to wrap your code, so the password is not visible. -
Item level security for custom items in 902
I've created several custom item types and created some items in a page
that enables Item Level Security.
Enabling item level security on any of these items cause
Error 30694: Error in API - update item failed
Steps:
1. Create custom item type
Extended simple text type
added image attribute
2. Create custom item
3. Edit custom item just created
Select Access / Item Level Security
Select Define Item Level Access Privileges
Hit Apply or OK
-> Error 30694: Error in API - update item failed
Same error is using a "Image" item type.
The above steps do not cause an error if using the default types; e.g. Simple Text and Simple URL
Also tried promoting the item type so its shared. No effect.
Is item-level security only for base "simple" item types??? If so then this is a MAJOR restriction.
Any help would be greatly appreciated.
--jason mathewsHi Jason
I filed a bug on this. See 2529787
I narrowed the problem down to custom item types that have a file or image attribute and only when the item is edited by someone other than the orginial publisher. -
"On Create" for custom items?
Does anyone know of a way to simulate an "on create" event for creating a new custom item? For example, if I want to populate some of the attributes of the item based on a database lookup when the item is created.
Thanks in advance,
WayneThere is currently no supported way to do this. This feature is planned for a future release.
Regards,
Jerry
PortalPM -
GetItemData integration api: unable to read data for custom item
Hello,
I am trying to retrieve the data of an custom item via the getItemData api but i am gett the error message
"Not implemented for this item type"
I checked the api documentation, the list of supported item types include custom methods.
Is there any thing that i need to maintain for the custom method so that i can read the data stored by it using the getItemData api.
or is it simply not possible to read custom item data.
Thanks for the help,
Regards,
SauravHi Ruediger,
Thanks for the reply.
To test the getItemData API i have implemented the hello world custom method example (java script).
I created an item using the UI and edidted the content.
when i try to read the saved data using the api i am getting the message
encountered an error:
Server returned HTTP response code: 400 for URL: https://streamwork.com/v1/items/5EXAbr-TgVCJV1qgL8-g1W/item_data?
<?xml version="1.0" encoding="UTF-8"?>
<error>
<http_status>400 Bad Request</http_status>
<message>Not implemented for this item type.</message>
</error>
When i try to read the data of a text item using the same API I am getting the correct response
<text_item>
<text_content><p>Hello testing</p></text_content>
</text_item>
So i was wondering how i can implement the getItemData for my custom method.
Thanks and regards,
Saurav. -
Vendor Line Item Display-Default value for customer items
Is it possible in selection screen of transaction FBL1N (Vendor line item display) the default value of field "customer items" to be checked?
Thanks in advance.hi Tsiami
it's not possible. if u want check customer line items go throw this TC:FBL5N
plz assign points
regards
sivareddy. -
Search help for Custom Item level field
Hi All,
I have two custom fields at Item level. Both of them has fixed values defined at domain. The fixed values have a short text also given with them.
The problem I am facing is when SRM provides default search help for these custom fields, for first field the 'Value' and 'Description' comes in the search result screen, but for second, only 'Value' comes in the search result.
When I try to debug, it shows the SHLPTYPE as 'SH' for first one and for the second as 'FV'.
What does this indicate?
My requirement is to display both value and description in the search result screen.
Please suggest.
Thanks
NandalalHi
Sorry for the delay. My User got locked for some time.
I have seen the document you sent me on my email id.
<b> I noticed in the case where the Search help is working fine, there is no space in between the contents of the Fixed values and their short text under the value range tab of the Domain element.
But in the case, where there is a problem with the search help. There both the Fixed values and their short description is having a space in between the words.
Try maintaining COND_A instead of "COND A". Also with the short description use "COND_A" instead of "COND A".</b>
<u>I hope this will resolve the issue.</u>
<b>Update me once you have any issues.</b>
Please reward suitable points, incase it suits your requirements.
Regards
- Atul -
Rate it Link for items in a content Area
Hi,
How do I add a rate it link for all items in a content area and track the rating for items by all the users. This is urgent and any help is appreciated
Thanks
MakarioYou need to create a custom item type, with a procedure that displays a link to do the rating.
For an example of a custom item type procedure, see Re: personal oracle 9i
Note that the primary key for an item is (masterid, id, caid, language). -
ICR - Selection times for Customer vs Vendor open items
All/Ralph
We have implemented note 1349849 and tested the selection again. I now have a strange result. The selection of customer open items is fast i.e. 120 000 records in 850 sec, however, the selection of the vendor items takes takes 3600 sec for same volume of items??...and times out.
I have executed several test runs using the selection parameters for both customer and vendor number (just to restrict to one associated company) and the results are consistent, the vendor items take around 3 to 10 times the time as for Customer items.
The respective total data volume in the open item tables was as follows:
BSID - 1.8 mil records
BSIK - 950K records
Has anyone experienced the above scenario?
Regards
KrisHello Kris,
I suggest you run a trace on the selects and check which indices are used for the tables. You may want to create an additional index for BSIK (or BSAK?) to speed up processing.
Best regards,
Ralph -
How to convert an excel file where customers have partial access for selecting items.
Please Advise,
I have created an excel file with columns that calculates price and quantity. I need to know how my customers can access the file without seeing all my calculations, etc. and just select the number of items. I need to keep my excel formula info confidential and at the same time having the customers the ability to select the items.
This excel file will be placed on my web site and linked where customers have access to it. They make their selections and emailed back for processing.with their selected items. If the excel file is converted into a pdf file, Then placed and linked for customer access how can customers have partial access and select in certain columns and have excel fuction for calculations?
Thanks,
Dan[discussion moved to Creating, Editing & Exporting PDFs forum]
-
Custom Item Type Icon not displayed
I have created a custom Item type from the base File type for PDF files.
I have asociated a PDF Icon with this type.
When I create folder object of my new PDF Type, my Icon does not ever seem to show up.
Why?
I must change the image associated with each item (secondary tab). to get an Icon to show up.
Why?
nullStuart,
According to the help text:
"Currently, this icon is not used by Oracle Portal. The icon may be used in future releases."
But, if you want to show it, you can use a procedure in the custom item type to display the icon. Just find the URL to the icon (in Internet Explorer, right click on the icon and select Properties to get the URL) and write a simple procedure to display it. For an example of a custom item type procedure, see the discussion at http://technet.oracle.com:89/ubb/Forum82/HTML/000379.html .
Regards,
Jerry
null -
Customer Item Open Interface Validation
Hi Folks,
I have to write package for customer item open interface ,
can anyone let me know what are the validation required or if any one have package written ,please share it with me .[email protected]
Waiting for your kind response.
Thanks in advance....
Regards
RPHi
Please find the code below for Customer Item Interface
HTH
Dinesh
declare
ex_not_ok exception ;
Cursor cur_cust_item is
select b.*,rowid from btl_cust_item b ;
rec_cur_cust_item cur_cust_item%rowtype;
vc_rowid varchar2(50);
vc_error_desc varchar2(2000);
vc_org_code varchar2(20) :='F02';
vc_org_id varchar2(20) ;
vc_inv_item number ;
vc_cust_id varchar2(50) ;
vc_create_by number;
vc_last_updated_by number;
vc_user_name varchar2(100);
vc_login_name varchar2(30) := '&1';
vc_master number;
begin
vc_org_id := &2 ;
vc_master := &3;
begin
select user_id ,last_updated_by ,user_name
into vc_create_by ,vc_last_updated_by , vc_user_name
from fnd_user
where user_name = vc_login_name;
end;
open cur_cust_item; -- open cursor
loop
begin
fetch cur_cust_item
INTO rec_cur_cust_item;
vc_rowid := rec_cur_cust_item.rowid;
exit when cur_cust_item%NOTFOUND;
-- perform the mandatory validations
-- 1. Check the validity of the customer
begin
select count(*)
into vc_cust_id
from ra_customers
where upper(customer_number) = upper(rec_cur_cust_item.customer_number);
if vc_cust_id > 0 then
null;
else
vc_error_desc := rec_cur_cust_item.customer_number||' '|| rec_cur_cust_item.customer_name ||' - Customer Number Does not Exist in Ra_customers';
raise ex_not_ok;
end if;
exception
when no_data_found then
update btl_cust_item
set process_flag = 'E',
error_message = 'XREF- Customer Does not exist '||vc_error_desc
where rowid = vc_rowid;
end ;
-- 2. Check that the Customer Item Is not Null
begin
if rec_cur_cust_item.customer_item_number is not null then
null;
else
vc_error_desc := rec_cur_cust_item.Customer_Number ||' - '|| rec_cur_cust_item.customer_item_number || ' - Customer Item has no value ';
raise ex_not_ok;
end if;
end;
-- 3. Validate the Inventory Item
begin
select count(*)
into vc_inv_item
from mtl_system_items a, org_organization_definitions b
where a.organization_id = b.organization_id
and rec_cur_cust_item.inventory_item = segment1
and a.organization_id = vc_org_id;
if vc_inv_item != 0 then
null;
else
vc_error_desc := 'Inventory Item '|| rec_cur_cust_item.inventory_item ||' is not valid/exist in mtl_system_item ';
raise ex_not_ok;
end if;
end;
rec_cur_cust_item.commodity_code := 'MISC';
insert into mtl_ci_interface (
PROCESS_FLAG ,
PROCESS_MODE ,
TRANSACTION_TYPE ,
CUSTOMER_NUMBER ,
CUSTOMER_NAME ,
CUSTOMER_ITEM_NUMBER ,
ITEM_DEFINITION_LEVEL ,
COMMODITY_CODE ,
INACTIVE_FLAG ,
LOCK_FLAG ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
--LAST_UPDATE_LOGIN ,
ERROR_CODE ,
ERROR_EXPLANATION
values
'1' , --PROCESS_FLAG
'1' , --PROCESS_MODE
'CREATE' , -- TRNASACTION_TYPE
rec_cur_cust_item.customer_number , --CUSTOMER_NUMBER
rec_cur_cust_item.customer_name , --CUSTOMER_NAME
rec_cur_cust_item.customer_item_number, --CUSTOMER_ITEM_NUMBER
'1' , --ITEM_DEFINATION_LEVEL
rec_cur_cust_item.commodity_code , --COMMODITY_CODE
'2' , --INACTIVE_FLAG
'N' , --LOCK_FLAG
sysdate , --LAST_UPDATE_DATE
vc_last_updated_by , --LAST_UPDATED_BY
sysdate , --CREATION_DATE
vc_create_by , --CREATED_BY
--'10' , --LAST_UPDATE_LOGIN
'N' , --ERROR_CODE
' ' --ERROR_EXPLANATION
Insert into mtl_ci_xrefs_interface (
PROCESS_FLAG ,
PROCESS_MODE ,
TRANSACTION_TYPE ,
CUSTOMER_NUMBER ,
CUSTOMER_NAME ,
CUSTOMER_ITEM_NUMBER ,
ITEM_DEFINITION_LEVEL ,
INVENTORY_ITEM ,
MASTER_ORGANIzATION_ID ,
PREFERENCE_NUMBER ,
INACTIVE_FLAG ,
LOCK_FLAG ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
--LAST_UPDATE_LOGIN ,
ERROR_CODE ,
ERROR_EXPLANATION
Values
'1' , --PROCESS_FLAG
'1' , --PROCESS_MODE
'CREATE' , --TRNSACTION_TYPE
rec_cur_cust_item.customer_number, --CUSTOMER_NUMBER
rec_cur_cust_item.customer_name , --CUSTOMER_NAME
rec_cur_cust_item.customer_item_number, --CUSTOMER_ITEM_NUMBER
'1' , --ITEM_DEFINATION_LEVEL
rec_cur_cust_item.inventory_item, --INVENTORY_ITEM
vc_master , --MASTER_ORGANISATION_ID
'1' , --PREFERENCE_NUMBER
'2' , --INACTIVE_FLAG
'N' , --LOCK_FLAG
sysdate , --LAST_UPDATE_DATE
vc_last_updated_by , --LAST_UPDATED_BY
sysdate , --CREATION_DATE
vc_create_by , --CREATED_BY
--'10' , --LAST_UPDATE_LOGIN
'N' , --ERROR_CODE
' ' --ERROR_EXPLANATION
--dbms_output.put_line( ' Inserting into reference table - done');
exception
when ex_not_ok then
update btl_cust_item
set process_flag = 'E',
error_message = 'XREF-'||vc_error_desc
where rowid = vc_rowid;
end ;
end loop;
commit;
begin
dbms_application_info.set_client_info(' ');
end;
dbms_output.put_line ( ' End time ' || to_char( sysdate, 'DD-MON-YYYY HH24:MI:SS'));
exception
when others then
dbms_output.put_line( Sqlcode || ' ' || Sqlerrm );
end ;
/ -
Hi,
I found from the replies by Jerry(PM) about the example procedure for custom type in the url
http://technet.oracle.com:89/ubb/Forum82/HTML/000379.html, but when we click on the link above, it says page cannot be displayed. is there a different url to access that code. Basically i am trying to create a custom type image with border, height and width resized than the one loaded into the portal. so after creating the attributes, what all should i pass as parameters to the pl/sql procedure? i saw in one example item_id and i don't know what that is and how it should be passed.?
any help please....
thanksHI Jerry,
Thanks. That is was i was looking for. But i have a question in that procedure. You are passing p_itemid as a parameter for attribute itemid. i assume it is a number. but my question is what is being passed in that. if we have a attribute as itemid, then the user using that custom item type, has to type in something right. what will they type in the itemid. why do we need itemid?
I am trying to create a custom item type for image with width and height. so i can have those two attributes created and then added to the custom item type called cust_image and then in the procedure, i can call a procedure and pass only width and height right. do i have to pass itemid too?my question is in that case what will be there in itemid and why is it being passed?
thanks for your help and reply again.
thanks
valli -
How to clear the open items and parked items for customer
Hi Experts,
I need to clear the open items and parked items for customer.
So any one could let me know the transaction code and procedure for clearing the items for customer.
Best regards,
Kesava balaji.Hello,
Parked items will have NO RELEVANCE, unless you post it.
You CANNOT clear parked items.
You can clear the posted items using F.13 or F-32
Regards,
Ravi
Maybe you are looking for
-
I cannot get voice memos to upload ( sync ) into my itunes library on my Toshiba PC. Many do.....but many won't upload so I can burn into cd's. HELP!!!!!
-
DW has a built in date format that produces the date in English. Can I change this to another language? Regards, Adriana. [ put out the rubbish if you need to reach me by e-mail ] www.spinsister.nl
-
Need Help with Identity Asserter and Authenticator
First I have build custom authentication provider and configured in Web logic without Assertion and deployed as MBean -- Then I build one Custom Identity Assertion separately and deployed on Web Logic with below configuration. Now my problem is that
-
Building credit as a new immigrant - next steps?
Hi, I recently moved to the US with my partner and we are keen to build a good credit score. So far we have the following between us: Me:American Express Everyday - $8000Capital One Quicksilver Visa - $300 (Product changed from Journey after the firs
-
Tips / Lesson Learn: Upgrading from ECC 5.0 to ECC 6.0 w/ Unicode
Hi We are looking into moving from ECC 5.0 to ECC 6.0 w/ EP7 and doing the unicode path on as well. What are some lesson learn you guys could share in potential issue may occur in the HCM realm? We don't currently have inhouse payroll, using PU12 to