How to Refresh the portal
Hi All,
i have a requirement to replace the existing role to the user through webdynpro dynamically based on user input.
This i am able to do successfuly but here i am facing the problem. the added role is not displaying until unless clicking on rfresh button in browser.
please let me know there is any way to rfresh the portal in browser through webdynpro java.
Thanks & Regards,
Bhargava Kumar.
I did not expect that you are using portal navigation (navigation between two Ivews) as this information was not clear in your earlier posts.
To achieve this (refreshing the parent ivew) in portal navigation (navigation between two Ivews):
You need to raise an event in the button action of PDFIview as below:
WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal",
"TestEvent",
"AParameter");
You need to subscribe the same event in parent ivew:
WDPortalEventing.subscribe ("urn:com.sap.tc.webdynpro.test.portal",
"TestEvent",
wdThis.wdGetTestEventAction());
in TestEventAction you can write the code to refresh the table in Parent IView
Go through this below link for more help.
http://help.sap.com/saphelp_nwce10/helpdata/en/d3/3857422d095542e10000000a1550b0/content.htm
Regards
Vijay
Similar Messages
-
How to refresh the Oracle Cache?
Hi,
I am dealing with millions of records. Every time, the cache is full. It causes my system to be slow. Could any one tell, how to refresh the cache.
Thanks and regards
Gowtham Sen.Hi Eric,
I think that, it may cause the system to be slow. Actually my system (LINUX server Enterprise 3 ) has 1GB RAM.
There I am running DB 10g , Work flow server 2.6.3, OWB 10G, Oracle Middle ware (HTTP server, portals).
I don't know, why the systen is too slow?
Could you please give some suggestions to increase the performace.
Thanks and regards
Gowtham Sen. -
How to refresh the textedit object in module pool
Hi All,
I would appreciate if anybody can solve my problem.
Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up.
Please tell me how to refresh the data in TEXTEDIT.actualy it is enough to do the following, assuming you have a container to put the textedit into it:
DATA: l_parent_container TYPE REF TO cl_gui_custom_container,
l_obj_editor TYPE REF TO cl_gui_textedit, "make this a global variable
l_text_table TYPE re_t_textline,
l_itftext TYPE STANDARD TABLE OF tline,
l_thead TYPE thead.
l_parent_container = ... "your container
move .... to l_thead... "your text header to read or reread
read text from SO10
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = l_thead-tdid "Text-ID
language = l_thead-tdspras "im_request-language?
name = l_thead-tdname "TDIC Text-Name
object = l_thead-tdobject "Texte: Anwendungsobjekt
TABLES
lines = l_itftext
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
convert itf text to stream text (SAPSCRIPT_DEMO_NOTE_EDITOR)
CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
TABLES
itf_text = l_itftext
text_stream = l_text_table.
IF l_obj_editor IS INITIAL.
CREATE OBJECT l_obj_editor
EXPORTING parent = l_parent_container. " Abstract Container for GUI Controls
ENDIF.
discard any previous changes
l_obj_editor->set_textmodified_status( cl_gui_textedit=>false ).
übertragen text in editor
CALL METHOD l_obj_editor->set_text_as_stream
EXPORTING
text = l_text_table
EXCEPTIONS
error_dp = 1
error_dp_create = 2. -
How to setup the portal with the uniform style for SRM + Esourcing?
how to setup the portal with the uniform style for SRM + Esourcing? We will setup SRM 7 + esoourcing + portal, but as we know esourcing screen style is not same with SRM, so how to uniform the style between this 2 diffirent software? any body have idea?
Hi,
SAP E-Sourcing 6.0 is the solution. It is same look&feel.
Regards,
Masa -
Hi,
I have an ALV Tree report developed using the OOPS. In my ALV Tree output, I have some buttons which will update the database after clicking. The data is correctly updating in the database. But, it is not getting updated in the ALV Tree display. That means, it is not REFRESHing the ALV Tree display. We have to again execute the program in order to see the updated output.
Could anyone please suggest me how to Refresh the ALV Tree display..?
We can't use the method 'REFRESH_TABLE_DISPLAY' as it is a PRIVATE method is the class CL_GUI_ALV_TREE.
Please share your valuable thoughts.
Thanks & Regards,
Paddu.Hi paddu.
please check out the link mentioned below,this will help u.
How to Refresh data on ALV tree
Regards
Theres -
How to refresh the panel's display in listener?
I have a Jcombobox and a panel(square,background color:white). I want user to choose the panel's size from the combobox and thus change the panel's display. However, when I choose a value from combobox, the panel's size DOES change, but the display cannot be rerfreshed realtimely. It still display the panel by previous size. If I minimize the whole window and restore, then the panel gets refreshed, displaying by new size.
Can anybody tell me how to refresh the panel's display dynamically? thank you a lot.
sraiperif we bounce the listener the connections to other might be lost.NO!
The listener contacts the DB to establish the initial connection between client & DB.
After the connection between DB & client has started, the listener has NO involvement between DB & client.
Stopping the listener has NO impact on existing sessions.
Edited by: sb92075 on Jul 28, 2009 4:37 PM -
ReturnToPortal() doesn't refresh the portal page
In the community preference page, when finishing changing the preference, calling IPortletResponse.ReturnToPortal() closed the preference page but didn't refresh the portal page. What needs to be done to refresh the portal page so the portlet can be refreshed with the new pref data?
ALUI 6.1MP1.
TIA!This is why it doesn't work...
There is a bug that I filed for this, basically that icon on the portlet header works for user and admin preferences... it make sense to add community preferences there too to make it all consistent.
The problem is: community preferences behaved differently.. in 5.x, the only way to edit them was to go through edit this community... the refresh mechanism is built into the community editor.
In g6 that didn't change... you still need to go through that route to actually update the portal with the new preferences. going through the icon does nothing. user and admin prefs will work b/c they also worked like that in 5.x.
Basically, it's a bug b/c community prefs never worked like that... adding it to the button promoted the sense that it should work, which it never did...
so you have to go through the edit this community route to make it refresh. -
How to refresh the input text value in backing bean
hi all
i want to know
how to refresh the input text value in backing bean?
i have tried this code ,but it doesnt work
public void click(ActionEvent actionEvent) {
tempConId.setValue("111111111111111");
AdfFacesContext.getCurrentInstance().addPartialTarget(tempConId);
sb know?
Edited by: Joe Zou on 2012-4-6 下午9:11The code looks good.
Here is a sample based on your use-case:
InputTextSample.jspx:
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<f:facet name="footer">
<af:commandButton text="Ok" id="cb1" partialSubmit="true"
actionListener="#{InputTextSampleBean.onClick}"/>
</f:facet>
<af:inputText label="InputText" id="it1"
binding="#{InputTextSampleBean.myInputText}"/>
</af:panelFormLayout>
</af:form>
InputTextSampleBean.java:
import javax.faces.event.ActionEvent;
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.context.AdfFacesContext;
public class InputTextSampleBean {
private RichInputText myInputText;
public InputTextSampleBean() {
public void setMyInputText(RichInputText myInputText) {
this.myInputText = myInputText;
public RichInputText getMyInputText() {
return myInputText;
public void onClick(ActionEvent actionEvent) {
this.myInputText.setValue("1234");
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(this.myInputText);
} -
How you refresh the planning application
how you refresh the planning application ? what is an enhanced calculation script?
Is this for an exam or interview?
Cheers
John
http://john-goodwin.blogspot.com/ -
How to create the Portal Service in Portal 7.3,
Dear Experts,
how to create the Portal Service in Portal 7.3, as we create in Portal 7.0 by creating the Portal Project in that we create Portal Service and we can start and stop in Portal Service configuration in System Administration
Thanks,
Sagar PandeHi Sagar,
Procedure
1. Open the SAP NetWeaver Administrator by either of the following methods:
a. Use the URL to your AS Java (hostname:port) to access the AS Java home page and use the link to SAP NetWeaver Administrator.
b. Alternatively, add nwa to the AS Java URL to access SAP NetWeaver Administrator directly. (hostname:port/nwa).
2 Go to Operations Management Systems and click the Start & Stop link.
The Start & Stop: Java EE Instances window opens.
3 Click the Java EE Application bar and select the relevant application in the Application List.
The Portal Services pane displays the services associated with the selected application.
4 Use the buttons Start Service or Stop Service.
Refer to Portal 7.3 help
http://help.sap.com/saphelp_nw73/helpdata/en/f6/ac978061ac4b24a87a1f821313c4fe/frameset.htm
Br,
Venky -
How to refresh the table control on some action
Hi All,
In a web Dynpro application, I am filling data to the Table control through Supply function. When I do some action (like save new record ) i want to refresh the table control means add the newly added record.
How to refresh the Table control.
Thanks
Hemalathahi hema........
if you are using a select query inside the supply function...
then...
you can just use node->invalidate(). method..
it just invalidates the node that is bound to the table.
so the supply function will be called again, which again uses the select query to fetch the values.. so that your table gets refreshed.
---regards,
alex b justin -
How to access the portal database ?
Hi ,
1. How to access the portal database from an abstract portal component program ?
2. How to insert data to the Table from the abstract portal component program ?
Please provide me some direction to proceed .
plz send me the steps how to access the Database using SQL.
Thanks
Smita
Edited by: Smita Mohanty on Nov 14, 2008 9:21 AMHi Smita,
In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
Go through my article given below:
[How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
I hope your problem gets solved.
Bye
Ankur -
How to change the portal user id 's assigned employee in ESS configuration
Hello Gurus,
I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
Could any of you please guide me in doing these steps?
Points will definitely be awarded for helpful answers.
Thanks gurus in advance for your help.
~~LBHi Leena,
You can create a new user name with the username and password assigned to it, with the transaction SU01.
Ex : ESS_USER1
Go to transaction code : PA30.
Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
Enter infotype number : 105
Now go ahead and click on the change button.
And assign the user name as ESS_USER1.
Then the pernr number will be assigned to the ESS_USER1 that you have created.
You can check the same when you go to the HRUSER transaction code.
Please let me know if you still have any issues on the same.
Cheers.
Sandeep -
How to refresh the client area
i used javax.swing.JPanel and drawed many shapes with paintComponent method. i wonder how to refresh the client area.
ps: i first used paint method to draw shapes, but i found a copy of the menu bar appeared. at last i found paintComponent method works, but when i tried to refresh the client area with repaint, the same scene appears.
could some one help me?
thanks in advance!when i tried to refresh the client area with repaint, the same scene appears. When you invoke repaint() on a component, the paintComponent() method of that component is invoked. So unless your code in that method is different, the image painted will be the same.
-
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD.
Maybe you are looking for
-
Wsdl2service and document style
Hello everybody. This is very urgent so any help will be really appreciated. I have a WSDL which uses document/literal style/encoding. I am running wsdl2service on it to generate java classes, and then proceeding successfully to generate and deploy a
-
Issue While creating dimension set
Hi, I created my 4 dimensions for 4 different languages.But whenever I tried to create the Dimension Set,there is a field named Enabled Dimensions. In my point of view there should some the list of all the enabled Dimension ,but I am not getting any
-
Contact sheets with file names. How?
Looks like I can only print out contact sheets without file names. How come?
-
AVAudioPlayer failing on Device but not simulator
I am using AudioQueues to record sound (using the SpeakHere example as a jumping off point) and AVAudioPlayer to play the recorded sound. This has been working just fine in the simulator. I've just tried it on the iPhone and it is failing. There are
-
On behalf of a friend (who obviously cannot get on-line): I can open Safari OK, but as soon as I try to open Google, Safari shuts down. It either does so immediately, or once I type an address or search name into Google. The systems no longer seem to