Portal form custom button to call new portal page
Portal 3.0.9
I can create a portal form componment which sets session variables appropriately based on a custom button. I can get a 2nd component such as a report to read this session variable ok as long as it on the SAME portal page.
However, how do I get the form (exposed as a portlet on a page) to call A DIFFERENT Portal page which contains a number of application components reading the previously set session variable? I do not want to call the module directly as it will appear in a popup window.
I've tried using owa_util.redirect_url('page url'); but this gets ignored and the same page is refreshed.
Any ideas?
John
Hi,
You can call the new page in the success procedure of the form
example
declare
l_url varchar2(2000);
begin
l_url := 'cut and paste the page link from the navigator';
go(l_url);
end;
Thanks,
Sharmila
Similar Messages
-
My websites appears as duplicates in old portal and not at all in new portal
When I use the old portal - all my websites lists twice. Also I sometimes need to reload to get to the website slots for the one that I have multiple deployment slots in.
Also - in the new portal - none of my websites appears in the website list. I can open them if I go through the old portal and use the "open in new portal" item.Hi,
Could you share the fiddler trace of both the portals .
To get the Fiddler trace, please download Fiddler
http://www.telerik.com/download/fiddler
The HTTPS option “Decrypt HTTPS traffic” under FIDDLER options in tools menu should be enabled to capture HTTPS traffic. Once enabled, reproduce the issue and send the traces for analysis to v-shpade at Microsoft dot com
Please write back here once sent.
Regards,
Shirisha Paderu -
Addition of CUSTOM button in SRM SUS PO page - SRM702
Hi All,
Scenario Used : MM - SRM SUS.
Requirements : Need to add a custom field in SRM SUS PO ,click on which will communicate to ECC vai SRM and bring the DMS related information .
As am new to BSP , do we have any enhancement facility such we have in Webdynpro ? if not what will be the best approch we can follow in this case.
Thanks
ChannaHI Zoltan,
Yes you got my requirement, I have already added several customer field in the same page as per guidance by SAP Note 762984 , mentioned by Anil.
Now I want to add a custom button called "Fetch ECC DIR" and when user click on that ,need to call ECC RFC Module.
Thanks for your inputs, as am very new to BSP ,can you kindly provide some more details how can I achieve this,it would be of great help.
thanks
Channa -
HTML Form Submit Button to call a procedure
hi! been looking high and low across all forums and it seems there are specific users like myself having problems with submit button and pl/sql procedures. Hope someone can clarify on this.
Scenario: created a html/dynamic page with a submit button(no java scripts, just plain <form action="schema.procedure" method="post"> etc) to pass values into a procedure to update database. In my case, i've hard coded the values in the procedure for testing purpose(thus my procedure don't receive any in parameters).
Problem:
Clicking on Submit button will result a page not found error.
Solution read so far:
Ensure that at least the Public has been granted Execute Access on that procedure, which i find funny cos I am logged in as the adminstrator having all the rights, heck, i even created the schemas, procedures and tables.
Result for me:
Page not found displayed, but when I highlight the url on that page (which is the complete address)and press Enter, the procedure went through and display the message in my procedure?!
But if I clik on a link (pointing to the same procedure), the procedure went through immediately.
I have tried:
a) clearing the browser cache
b) deleting archive versions of the page
c) entering the whole address
d) recreate the html page using pl/sql
but still the same problem.
Any advise on this? Is this a bug? how to go around this?
Rgds.Hi,
I did the following :
1) created a procedure called test1 in schema portal30
create or replace procedure test1
as
begin
htp.p('Hi there');
end;
2) granted it to public
grant execute on test1 to public;
3)created a dynamic page like this:
<HTML>
<HEAD>
<TITLE>Example</TITLE>
</HEAD>
<BODY>
<form action='portal30.test1'>
<input type="Submit" value="click me">
</Form>
<H1>Example of A Dynamic Page</H1>
<ORACLE>select * from PORTAL30_DEMO.emp where deptno = :department</ORACLE>
</BODY>
</HTML>
4) ran the dynamic page ,works fine
Thanks,
Anu -
Portal forms connecting to each other in tabbed page
Well, here's a challenge...for me anyway.
If the forms are created and they are published as portlets and in the tabbed page, is there a way to get
the user to fill out 1 form and be passed automatically to the next?
I haven't done this before, but am aware of the parameter concept a tad. The page the forms go to can accept parameters and the forms have a common field on each of them > but what is the next step?
-does this code work better as javascript or pl/sql?
-where exactly does the parameter passing event occur/get written?
hope these basic questions are easy for someone....
thanks in advance.
maryHello,
I have just seen your question. I have a very similar question myself (without tabs), but I have no reply yet. In case you have a solution, could you kindly email me ([email protected]). Thank you, Trivan Pal -
Hi,i call from my bsp application a new url with:
navigation->USE_AUTO_SUBMIT_FORM( TARGET_FRAME = '_blank' ).
navigation->CALL_APPLICATION( url = url_role ).
call the new url ok, but my page turn in blank, i want to see my page, when i call the new url, how i do that?
thanks
Angel G.Hi,
why do you need two statements? I thought the following statement should be enough..
navigation->goto_page( url = 'http://www.sap.com' ).
Regards,
Suresh Datti
P.S. PL post BSP questions in the BSP forum for a better response -
Call a portal form from another form
I have a portal form which needs to call another form using a link and passing parameters ..
both of forms are built on tables with a forigen key..
How can i pass parameters from form1 to form2 ?
Best RegardsHi,
Here is a sample which calls another form with the values of flightno and ticket no.
declare
flightno number;
ticketno varchar2(30);
tdate date;
persons number;
blk varchar2(10) := 'DEFAULT';
begin
flightno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_FLIGHT_NO');
ticketno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_TICKET_NO');
tdate := p_session.get_value_as_date(
p_block_name => blk,
p_attribute_name => 'A_TRAVEL_DATE');
persons := p_session.get_value_as_number(
p_block_name => blk,
p_attribute_name => 'A_NOF_PERSONS');
call('SJDEMO30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1384225689&p_arg_names=_sessionid &p_arg_values=&p_arg_names=flightno&p_arg_values='||flightno||'&p_arg_names=ticketno&p_arg_values='||ticketno);
end;
Hope this helps.
Thanks,
Sharmila -
How to open NEW PORTAL PAGE from current portal page ?
I'm very confuse with my problem.
I have 2 portal page.
portal page I has 2 portlet : portlet A & portlet C.
portal page II has 2 portlet : portlet B & portlet C.
Now my customer want : start with portal page I, when i submit portlet A, program will open portal page II.
I don't know the way to call new portal page from current portal page. Help me, please.
Thanks.
Edited by: young_hero on Oct 30, 2008 1:12 AMCould you please help me how to call a .html page
from a Pl/Sql procedure or trigger ?
Thanks & Regards
Kalyani KothaKalyani,
Could you explain a little more exactly what you're trying to acheive? I'm not quite sure what it is you're asking for. Are you asking: "how would you/can you open a browser and direct it to a URL with PL/SQL?"
Earl -
When you run oracle portal forms why does it create...
When i run my oracle portal form..it creates a new name for the form? Why doe it do that?
With portal 902 (shipped along with iASv2) you have the option of editing the same component and not creating a new version each time you edit it.
I don't think forms is designed to create a new version of name each time it is run. Can you elaborate on the issue you are having and the version being used. O know..i edit the form..but when im doine editing it..it automatically creates an 'updated version"...which i understaned..but why can't i use the old version and update that? How do you do that?
becuase I'm having to delete all my old versions of my form which are like 100 versions.
Also the name of my form changes everytime i run the form. I added a javascript code that tells me the name of the form and it changes everytime I run the form (nit edit it)
I wrote: alert(form.name);
And everytime i ran the form it changes the name. -
How to call a portal component in a java program
Hi guys,
We need to add some more operation after user log into portal, thus we need to call a portal component after statement proxy.logon(null) from java program SAPMLogonLogic.java,
Any ideas how can we call the component directly?
ThanksHi,
We can access iview,page,role(pcd objects) thru APIs
refer [this link|http://help.sap.com/saphelp_nw04/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm].
may be u can use these APIs to do the task.
do revert. -
ALV issue - capturing user changes in editable fields using custom button?
Hi,
I created a custom button in ALV tool bar. And also in my ALV grid I have couple of fields Editable option. User can change values for these 2 fields.
My question is -
After changing values for these editable fields(more than 1 record) , user will click on custom button and then I have to update all the user changed values in to my internal table(lt_tab) and then I have to process logic.
Problem is when user click on Custom button in ALV tool bar it is not having the changed values in lt_tab table.
Only when user clicks some thing on ALV grid records or fields then it is getting all the changed values in to lt_tab.
Can any one tell me how I can get changed values when user clicks on custom button?
1. Can we place custom button in ALV Grid? instead of ALV tool bar?
or
How I can capture user changes when they click on custom button?
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
TABLES
T_OUTTAB = lt_tab
Please check this logic-
CASE r_ucomm.
WHEN '&IC1'.
- It_tab having all changed field values
WHEN 'custom button'.
lt_tab - not having any changed values - showing all initial lt_tab values.
I highly appreciate your answers on this.
Thanks.
Rajesh.Hi,
Use this code, its working:-
*& Form ALV_DISPLAY
* SUB-ROUTINE ALV_DISPLAY IS USED TO SET THE PARAMETERS
* FOR THE FUNCTION MODULE REUSE_ALV_GRID_DISPLAY
* AND PASS THE INTERNAL TABLE EXISTING THE RECORDS TO BE
* DISPLAYED IN THE GRID FORMAT
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = v_rep_id " report id
i_callback_pf_status_set = 'PF' " for PF-STATUS
i_callback_user_command = 'USER_COMMAND' " for User-Command
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout = wa_layout " for layout
it_fieldcat = it_field " field catalog
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
it_sort = it_sort " sort info
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
i_save = 'A'
is_variant = wa_variant " variant name
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_final " internal table
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " ALV_DISPLAY
*& Form USER_COMMAND
* SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
* AND EXECUTE THE APPROPIATE CODE
* -->LV_OKCODE used to capture the function code
* of the user-defined push-buttons
* -->L_SELFIELD text
FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
* assign the function code to variable v_okcode
lv_okcode = sy-ucomm.
* handle the code execution based on the function code encountered
CASE lv_okcode.
* when the function code is EXECUTE then process the selected records
WHEN 'EXECUTE'. "user-defined button
* to reflect the data changed into internal table
DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
* refresh the ALV Grid output from internal table
l_selfield-refresh = c_check.
ENDCASE.
ENDFORM.
This will reflect all the changes in the internal table. Now you can include your logic as per your requirement.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir -
How to create a new creation page from view page itself
Dear all
i have view page in that i need to click on new button i need to call new creation page
here i am writing the code in view page co in pfr
HashMap h1 = new HashMap();
h1.put("pmode", "Continue");
if (pageContext.getParameter("New") != null)
pageContext.setForceForwardURL("OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationcreationPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null, h1, false, OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
in creation co i am calling this method
if (pmode!=null)
System.out.println("Entered into this block.....");
am.xxcreatequotation(orgid);//blank record for this
System.out.println("After this statement......");
cancel1.setRendered(false);
System.out.println("After this statement......11");
in view page when i am clicking the new button the page is calling editable mode
i dont think so y it is happening like this.
Regards
SreekanthDear Gaurav
i wrote this code
public void xxcreatequotation(int orgid)
xxcrmOpportunityTVOImpl vo = getxxcrmOpportunityTVO();
OADBTransaction tr = getOADBTransaction();
int x = 0;
String lv_current_flag = "Y";
String lv_opt_flag = "N";
if (vo.getFetchedRowCount() == 0)
vo.setMaxFetchSize(0);
Row createqtn = vo.createRow();
vo.insertRow(createqtn);
createqtn.setNewRowState(Row.STATUS_INITIALIZED);
Number qtnid = tr.getSequenceValue("xxcrm_opportunity_seq");
System.out.println("The opportunity id is....." + qtnid);
vo.getCurrentRow().setAttribute("OppoOpportunityid", qtnid);
vo.getCurrentRow().setAttribute("OrgId", orgid);
vo.getCurrentRow().setAttribute("OppoRevisionId", x);
vo.getCurrentRow().setAttribute("OppoCurrentFlag", lv_current_flag);
vo.getCurrentRow().setAttribute("OppoIsoptional", lv_opt_flag);
vo.getCurrentRow().setAttribute("OppoBaseOpportunityid", qtnid);
Regards
Sreekanth -
How to call a JSP page from Applications menu?
Hi partners,
I am still looking for "how to call a JSP page from Applications menu?", I mean instead of calling a form, I want to call a JSP page which is staying in a OC4J repository which is located in another server.
Any idea will be really appreciated.
Thanks in advance.
Frank Mtz.Hi Frank,
if u know the solution please share it with me. i'm looking for the same scenario.
thanks in advance,
anish -
Use Custom Button to go to another portal form
Hi,
I created a custom button, and in the PL/SQL handle, I put in the code to redirect the url to another portal form/report. When I run the form and press the custom button, it does not go to the other form, it remains on the same form that I started with. Why?
I can put the same piece of code in advance PL/SQL => After displaying the page, draw a html button to do the same task. It will work for me when I press the button (i.e. go to another form). So, how come I cannot do the same thing using Custom button?
Thanks;
Kelly.Kelly,
The reason you don't see the next form because our module subsystem has a set of rules when to redirect and when not. However, there is an "internal" function which you can call from your custom button code to get this effect:
PORTAL30.wwa_app_module.set_target('http://www.yahoo.com','CALL');
Please note this is an internal function and may change at any time.
Thanks,
Dmitry
null -
Conditional display of "Custom" Buttons in Portal Forms
Could someone tell me if the following is possible, and briefly explain the steps to a beginner in Portal (but reasonably familiar with PL/SQL):
Problem - How to display "Custom Buttons" conditionally
Example -
a) Assume you have a certain record ("patient_address"). The hospital requires that every patient address be authorized before submitting records to health insurance. However, authorized records should not be authorized again.
b) Also assume that the "patient_address" table has a column "authorized" (which can contain Y or N)
* The requirement is to show an "Authorize" button whenever the record being viewed has the "authorized" column as "N" only
* If possible, this can be further improved by obtaining whether the person viewing the information has permission to authorize, but this can be taken as a next step
Approaches -
1. If possible, achieve this in Portal Forms
2. (worst case) - show the button, but show a message if it is pressed and the action does not apply
Somehow, it seems as though Portal Forms is not suitable (or does not have the documentation readily accessible) of how to do specific, custom, real world forms design as in this example - could someone please elaborate
Also, would this be better done by using one of the following in combination with Portal:
- HTT (will this be supported, given that it is an Oracle internal technology)
- PHP (is this even compatible with Portal?)
nullHi,
Conditional display/hide of custom buttons is not yet supported in Portal.
However, if you are willing to modify the generated form package this could be done.
Each form has a procedure called row_function which conditionally hides Insert/Update buttons depending on the mode. By default all elements of a form are visible, then row_function modifies the "visibility" property to hide that element.
for example, this is a fragment of row_function code which hides the Insert button in update mode:
"_form_state" := p_session.get_value_as_varchar2(
p_block_name => "_block",
p_attribute_name => '_FORM_STATE');
if "_form_state" = 'UPDATE_AND_DELETE' then
"_idx" := get_index('INSERT_TOP');
p_form.items("_idx").visible := 'N';
end if;
You can add any additional code to check form's session storage/custom package variable/function whatever is more suitable in your case.
Then you just set visible to 'N'.
"_idx" := get_index('MY_CUSTOM_BUTTON');
p_form.items("_idx").visible := 'N';
Of course the biggest drawback of this is every time you edit your form you will loose your change and must edit the package manually. To minimize the effect you can create a custom package/procedure with type signature matching that of row_function and place your code there, so you will need to add only one line of code to the row_function.
Hope this will help to resolve the problem, I don't know the status/plans for HTT/PHP support in Portal.
Thanks,
Dmitry
Maybe you are looking for
-
How can I sync/import/export bookmarks between different users on the same computer
To save time, I want to sync/import bookmarks between/from another user on the same computer.
-
In the forum threads I simply Cannot see the "Accept as Solution" button FOR THE LIFE OF ME......... - Can you help me locate it,please ? This question was solved. View Solution.
-
Could you please send me some feedback?
Hey guys, I just uploaded a video tutorial on youtube about how to create a clean background in adobe photoshop. Could you please check the video out and tell me your opinions so I can improve? http://www.youtube.com/watch?v=IT_JiW4w9yY
-
HT1695 Wi-Fi is not working after iOS6 download
My wi-fi continues to drop after I downloaded the new software iOS6. It connects then sends me to an apple page and on the page it says "hmmmm the page you are looking for cannot be found" then it drops my wi-fi signal. I've tried turning it off then
-
Error message while trying to download Ipod Updater
Help! I am about ready to lose it. When I plug my mini into my computer it says that Itunes does not recognize it and that I need to restore it to factory settings. That is fine but in order to do that I need to launch Ipod Updater. When I try to dow