Display text on click of a button on a popup in a BADI.
Hi,
I have implemented a BADI in which I am calling a FM 'POPUP_TO_CONFIRM'. Now I need to display some text on the click of one of the buttons of the pop-up.Can someone sugeest how to go about this.
Thanks.
Hello Rachana
You could use another function module like <b>POPUP_TO_DISPLAY_TEXT</b>.
If you only want to send a message, then you could try an S-message (which might be suppressed after leaving the BAdI by other messages) or an I-message.
Regards
Uwe
Similar Messages
-
Old values are displayed when i click the back button of the browser
Hi all,
I am having a INPUT screen having 2 textfields and a "Confirm" button. When user enters values in these textfields and clicks on "Confirm" button, another CONFIRMATION page is displayed where these values are just displayed as h:outputText. But when user clicks the back button of the browser previosly entered values are getting displayed in the INPUT screen. My question is how to remove these values or set to null on click of the Back button of the browser?
Thanks in adv.Hi,
i believe this should handle the browser. For instance, you have to tell him with meta tags, not to cache the website. Until yet I didn't succeed in doing so!
With kind regards,
Lutz Steinfeld -
Is there any function or way to get a text when clicked on a button
Hi all,
I need to get a file name when clicked on a button at user-command(just after the selection ends and the output came, there are some buttons on the screen).
Any function, thanks.If you want user to supply a file name, you should popup a file selection dialog box. Depending on where the file might reside, use one of the following function modules.
F4_FILENAME
F4_FILENAME_SERVER -
Forced Navigation - Want the next button to display after user clicks on all buttons.
Hi. I'm new to using Captivate to make a learning module. I'm stuck on this forced navigation issue. I created 8 click boxes that the users have to click on. I created 9 advanced actions. Each AA for the click boxes hides text boxes that don't pertain to it, shows a text box, plays audio, and assigns a number 1 to a variable I created. There are 8 variables. I then created an conditional AA that displays the next button once all 8 variables have the number 1 assigned to it.
For some reason, the next button doesn't display even though I'm sure each variable has the number 1 assigned to it. Also, I want the entire audio to play for the click box before the person can click on the next click box. Right now, I can click on a click box and then another click box right afterwards and the audio stops and the next audio starts. Can you all please help?
I am using Captivate 6.0.0.199. My computer is running Windows 7. I want the output to be SWF. Thank you in advance for your help!First of all, install the patch, you are still on the unpatched version that had a lot of bugs. Almost one year ago a fix was released, your version should be 6.0.1.240. Use Help, Updates.
The difficult part will be the audio, the other part should be very easy, have explained that a lot of times. You could disable all click boxes, but then you need a new event to trigger the 'enable' action. Is it that important? Are those users not wise enough to listen to the audio, or is that audio not interesting enough? Why not instruct them about listening?
I suppose you use the Play Audio statement, and indeed, when you trigger another audio clip the previous one will be stopping. You could attach the audio to an 'invisible' object, and make that visible which will play the audio. But that will cause another issue if the user clicks too quickly on a second click box: both audio will play at the same time.
Lilybiri -
Previous page navigation after on click of cancel button of a form in adf
Hi,
Can any one tell how previous page navigation works in adf?
I am working on a portal page which is having a common footer for all jspx pages.This footer contains a golink for feedback form.
so the problem is when I Navigate to any page (# page 1)and then Navigate to some other page (#page 2) and on click of Feedback link displayed on footer of page 2 Feedback form is displayed. and on Click of Cancel button of the form.
Expected Result:
User should be navigated to the page that they were on. (i.e., Page 2)
Actual Result:
User is navigated to page 1 instead of page 2
i.e it is taking browser previous url.
I am using the following code for the cancel button
<af:commandLink text="Cancel" id="cl5">
<af:clientListener method="goBack" type="click"/>
</af:commandLink>
java script....
function goBack()
window.history.back()
Edited by: 993530 on Apr 23, 2013 3:35 AMHi,
Immediate = true is already been set for cancel button
The problem is when i come back to the 1st page vo is getting executed again and is taking lot of time.. i need to see that vo does not get executed again
in the vo for view criteria -- query execution mode , i have made as in memory and now it has become fast on click of cancel button. But i am getting the following error when i perform search in the first page
Missing FROM in a SELECT statement
An unexpected expression token is found.
Thanks,
. -
How to close main window on click of a button on popup window
Hi All,
I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
Can anyone please help with this requierment!!!
Regards,
tusharHi All,
Could anyone of you please help me by answering the thread
WDDOEXIT method not called when the application is closed from the portal
Thanks,
Subash M -
Want to make an iview invisible on click of a button!!!
Hi Experts,
We've a requirement wherein we want an iview to be called but it should not be visible on the left hand side navigation pane.
Actually, the iview has been assigned to a workset and is called as soon as the user clicks on the workset. Now after the ivew is called it appears on the left hand side navigation panel as well as since we are using a workset map iview within the workset the iview is visible in the content area as well.
I want that after the iview is called and the content is displayed. On click of a button, I want that iview to become invisible and the control should go to the next iview.
I know how to navigate from an iview to another iview but I don't know how to make the first iview invisible on click of a button.
Kindly suggest how can I acheive this functionality?
Regards,
AnuragHi Vinod,
Thanks for the prompt reply.
Yes., the new iview would be visible in the same window and the previous iview should not be present on the left hand side navigation panel.
Currently, since the iview is a part of a workset, on click of a button the user is navigated to the new iview but the previous iview is present on the navigation panel. Is there any way possible so that we can remove the previous iview from the left hand side detailed navigation panel when the user navigates to the new iview
Actually, we have a workset map iview and so all the iviews assigned to the worksets are available as links on the screen. After the user navigates to the new iview the previous iview's link should become invisible from the content area.
Is this possible to remove the previous iview's link from the content area and the navigation panel on the left hand side?
Thanks in advance for your reply!!!
Regards,
Anurag -
How to close the detach popup on click of a button in the panel collection
Hi,
I'm using Jdeveloper 11.1.2.3.0.
I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
Clicked detach button to view the table in full browser.
On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
Thanks,
VinodHi Frank,
Thanks for your response. Popup is not closed.
I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
Printed client id and UI component class in the while loop, result is as below.
r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
f1 class oracle.adf.view.rich.component.rich.RichForm
Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
Thanks,
Vinod -
On Button click change the button display text from LOCK to UNLOCK
Hi Freinds,
I am rendering a TreeByNestingTableColumn with two columns like: Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
Name Status
|> Employee1------------------LOCK (when i click on lock button here, his and under neath of him button status should
|>Employee2-----------LOCK change from LOCK status to UNLOCK)
|>Employee3----LOCK
Thanks in advance.
Thanks
SriniArmin,
Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view) (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
I am trying to get this output:
From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME, STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted (please see the below picture for clear idea)*
if (statusflag = ""){
i have to show values in two columns like Lock ...Planning
} else
show values in two columns like Un Un Lock ...Submitted
One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is from Submitted to In Planning.
This is the functionality actually I am looking for.
Here the tree sample:
Name Status Planning
|>M1 Lock In Planning
|>M2 Lock In Planning
*M2a Lock In Planning
|>M3 Un Lock Submittd
Thank you.
Srini -
Displaying an HTML Data Set on button click
I'm using the code from the
HTML
DATA Set Example
I have the code in a function and I want to have it display
in a div on the page when a user clicks a specific button.
I get this error message: "spry:region or spry:detailregion
attribute has no data set!"
This is my javascript:
function evalNames( )
var myArrayOfData = [
{ lastname: "Davis", firstname: "Kirk" },
{ lastname: "Miller", firstname: "James" },
{ lastname: "Wilson", firstname: "Alex" },
{ lastname: "Moore", firstname: "Albert" },
{ lastname: "Taylor", firstname: "Eric" },
{ lastname: "Anderson", firstname: "Vincent" },
{ lastname: "Thomas", firstname: "Anthony" },
{ lastname: "Lee", firstname: "John" },
{ lastname: "Smith", firstname: "Edward" },
{ lastname: "Johnson", firstname: "Neil" },
{ lastname: "Williams", firstname: "Steve" },
{ lastname: "Jones", firstname: "John" },
{ lastname: "Brown", firstname: "Joe" }
var hashTable = [];
for (var i = 0; i < myArrayOfData.length; i++)
myArrayOfData
.ds_RowID = i;
hashTable = myArrayOfData
var dsPeople = new Spry.Data.DataSet();
dsPeople.data = myArrayOfData;
dsPeople.dataHash = hashTable;
dsPeople.loadData();
var Output2 = "<input type="button" value="Sort By Last
Name" onclick="dsPeople.sort(['lastname', 'firstname'], 'toggle');"
/>";
Output2 +="<input type="button" value="Sort By First Name"
onclick="dsPeople.sort(['firstname', 'lastname'], 'toggle');"
/>";
Output2 +="<div spry:region="dsPeople">";
Output2 +="<table border="1">";
Output2
+="<tr><th>ds_RowID</th><th>Last
Name</th><th>First Name</th></tr>";
Output2 +="<tr
spry:repeat="dsPeople"><td>{ds_RowID}</td><td>{lastname}</td><td>{firstname}</td></tr>";
Output2 +="</table>";
Output2 +="</div>";
document.getElementById("nameResults").innerHTML = Output2;
I have a button on my page with the function evalNames() and
I have a div called "nameResults"
Is there an easier way to accomplish the same thing with the
Spry Framework? In theory should I be able to get this html data to
display in a div on the user's click of a button? Any suggestions
on making this work(it could just be a syntax error in the way my
var Output2 is written)?Hello,
Based on the code above I discovered a number of problems:
1. The dsPeople DataSet has sense inside the function only so
the regions will not be able to use it. Instead you should move the
dsPeople DataSet declaration outside the function in global scope.
2. The code you try to inject into the innerHTML is not
valid. Inside double quotes all the double quotes should be escaped
or single quotes should be used.
3. The regions are instantiated only a single time on page
load so if you need to inject a new region into the page you'll
have to reinitialize the regions or the new region will not be
considered.
Based on your code above I change it a little bit to solve
the issues:
<script type="text/javascript">
var dsPeople = new Spry.Data.DataSet();
function evalNames( )
var myArrayOfData = [
{ lastname: "Davis", firstname: "Kirk" },
{ lastname: "Miller", firstname: "James" },
{ lastname: "Wilson", firstname: "Alex" },
{ lastname: "Moore", firstname: "Albert" },
{ lastname: "Taylor", firstname: "Eric" },
{ lastname: "Anderson", firstname: "Vincent" },
{ lastname: "Thomas", firstname: "Anthony" },
{ lastname: "Lee", firstname: "John" },
{ lastname: "Smith", firstname: "Edward" },
{ lastname: "Johnson", firstname: "Neil" },
{ lastname: "Williams", firstname: "Steve" },
{ lastname: "Jones", firstname: "John" },
{ lastname: "Brown", firstname: "Joe" }
var hashTable = [];
for (var i = 0; i < myArrayOfData.length; i++)
myArrayOfData.ds_RowID = i;
hashTable = myArrayOfData;
dsPeople.data = myArrayOfData;
dsPeople.dataHash = hashTable;
dsPeople.loadData();
var Output2 = "<input type='button' value='Sort By Last
Name' onclick='dsPeople.sort([\'lastname\', \'firstname\'],
\'toggle\');' />";
Output2 +="<input type='button' value='Sort By First
Name' onclick='dsPeople.sort([\'firstname\', \'lastname\'],
\'toggle\');' />";
Output2 +="<div spry:region='dsPeople'>";
Output2 +="<table border='1'>";
Output2
+="<tr><th>ds_RowID</th><th>Last
Name</th><th>First Name</th></tr>";
Output2 +="<tr
spry:repeat='dsPeople'><td>{ds_RowID}</td><td>{lastname}</td><td>{firstname}</td></tr>";
Output2 +="</table>";
Output2 +="</div>";
var el = document.getElementById("nameResults");
el.innerHTML = Output2;
Spry.Data.initRegions();
</script>
</head>
<body>
<div id="nameResults" style="border: 1px solid
red"></div>
<a href="#" onclick="evalNames(); return false;">Eval
Names</a>
</body>
A more easy way to achieve your goal is that the region to
already exists in page having either the visibility hidden or the
display: none CSS attributes set and the button only to change the
CSS property to display the region. The solution in this situation
will work better from point of view of performance as the
initRegions manual call will initialize again all the regions in
page.
Regards,
Cristian MARIN -
Jsp data display as a result of a button click
i have a textfield in a jsp along with a SEARCH button. the search button searches the database for the existence of the value entered in the textfield.
how should i code so that at the click of search button the dbase is searched (for the entered value in textfield).
the dbase should be searchedonly after the click of search button.
i wud also like to display the searched value as a table data next to the button. how shud i code it. i coded search logic using a function which is in a javascript. but the function is executing before the press of the search button.
i'm new to JSPs. please help.. thanks.It's covered by every decent JSP/Servlet book/tutorial. With other words, this is too trivial and it proves that you really know nothing about it at all. I then highly recommend to take time first to go through a decent book/tutorial. This forum is to help others with technical coding problems, not to spoonfeed others who cannot write code.
To start with HTML: [http://www.w3schools.com/html/].
A nice HTML book: [http://www.amazon.com/HTML-Dummies-Ed-Tittel/dp/076450214X].
To start with JSP/Servlet: [http://java.sun.com/javaee/5/docs/tutorial/doc/ (part II chapters 1-8)].
A nice JSP/Servlet book: [http://www.amazon.com/Head-First-Servlets-JSP-Certified/dp/0596516681].
It boils down to having a HTML <form>, <input type="text"> and <input type="submit"> in the JSP page and havinig a Servlet with necessary code in the doPost() method which obtains the request parameter, queries the database, stores the result in the request scope and forwards the request to a JSP for display -which on its turn uses JSTL c:forEach to iterate over the list of results.
Good luck. If you ever have a technical JSP/JSTL question/problem, you're welcome to ask here. -
SALV class : Footer display on click of a button
Hi,
I am using SALV classes to display ALV report. Is it possible to display the footer on click of a button in ALV report (on user command) ?
i am doing the following, but it does not work. there is no footer displayed
METHOD on_user_command.
CASE e_salv_function.
WHEN '&ACT' .
PERFORM set_end_of_page CHANGING o_table.
WHEN (...)
endcase .
FORM set_end_of_page CHANGING p_o_table type ref to cl_salv_table.
DATA: lo_footer TYPE REF TO cl_salv_form_layout_grid,
lo_f_label TYPE REF TO cl_salv_form_label,
lo_f_flow TYPE REF TO cl_salv_form_layout_flow.
** footer object
CREATE OBJECT lo_footer.
** information in bold
lo_f_label = lo_footer->create_label( row = 1 column = 1 ).
lo_f_label->set_text( 'Footer .. here it goes' ).
** tabular information
lo_f_flow = lo_footer->create_flow( row = 2 column = 1 ).
lo_f_flow->create_text( text = 'This is text of flow in footer' ).
lo_f_flow = lo_footer->create_flow( row = 3 column = 1 ).
lo_f_flow->create_text( text = 'Footer number' ).
lo_f_flow = lo_footer->create_flow( row = 3 column = 2 ).
lo_f_flow->create_text( text = 1 ).
** Online footer
p_o_table->set_end_of_list( lo_footer ).
** Footer in print
p_o_table->set_end_of_list_print( lo_footer ).
ENDFORM.H Geetha,
Add ScrollContainer to your view. In that take textView. Bind the context element to textView. Or Take TextEdit and bind the context. I don't think there is any problem.
regards,
Siva -
Flash Buttons - Onclick display text
Hello,
I have a total of 5 separate buttons in my flash document. I want to have a user to be able to click the button and have it display some sort of text near the button itself. How do I get the text to stay once a button is clicked and disappear when another button is clicked? I dont want to use the hit method because the text will contain hyperlinks that I want the user to be able to click on. Any help would be appreciated.var tf:TextField=new TextField();
addChild(tf);
// add button listener's with listener function onClick
function onClick(e:MouseEvent):void{
tf.x=e.currentTarget.x+e.currentTarget.width; // depends on your buttons' reg points
tf.y=e.currentTarget.y; ""
tf.text =whatever
// whatever else -
Displaying Text When Button Pushed
I am preparing a form in Designer with multiple check-boxes. The instructions for each check-box are so detailed that even an experienced user will occasionally want to review the detailed parameters. I would like to place a button next to each check-box which, when pushed, displays pdf or typed text of the relevant portion of the instructions (i.e. - every button would display a different pdf/text). Can this be done with a limited amount of scripting? Also, can the pdf/text be "embedded" into the form?
Steven,
We had a similar requirement for one of our forms. What we did was to create a multi line text field called additional_guidance.
Then in the mouseEnter event of each field we had the following Formcalc:
additional_guidance = "This is further information about this checkbox"
On the mouseExit event we had:
additional_guidance = null
Alternatively, you could set up the root container as a flowed content. Then the checkboxes would be in a positioned content subform and subsequent fields in another positioned subform. In between these you would have a hidden invisible flowed subform which contains the notes in a text field or static text. This would appear or be hidden depending on mouseEnter events or click events on buttons.
If you need to provide alot of detailed information in a formatted layout, then you could set up a page for each checkbox (or one page for all of the checkboxes) at the end of your form (e.g. called checkbox1_notes). You would set the presence to hidden. Then your button next to checkBox1 would have javascript like this in the click event:
checkbox1_notes.presence = "visible";
xfa.host.currentPage = xfa.host.numPages - 1;
Remember to put a hide button on this help page with the folloeing javascript in the click event:
checkbox1_notes. presence = "hidden";
xfa.host.setFocus(xfa.form.form1.p1.checkbox1); //this would be the full reference for your object
Good luck,
Niall -
Display GOS without click on 'Service for Object' button
Please try the following step to figure out.
1) VA03
2) At header of report (on the left hand side of 'Display S/O SysB SDI xxxxxxxxx:Overview' ) has a button called 'Services for Object' (GOS)
3) Click on that then it will popup icon menu set. <--- Want this to be displayed when access VA03 by no need to click the button in 2)
My requirement is I want this popup to be displayed suddenly after I access VA03 (no need to click on the Services for Object button anymore).
<b>
Could you please provide me any solution, function, example, similar case, etc. (based on 4.6c)?</b>
Thank you all expert in advance.. I'll be here to provide you more information that need.I found the solution yet. Let me drop a note to be a memorandum.
(1) Insert code into the last line of form <u>USEREXIT_READ_DOCUMENT</u> within report <u>MV45AFZZ</u>
PERFORM UNITEXIT_READ_DOCUMENT.
<b>*{ INSERT
*[Display Attachment Service Automatically]
DATA: lo_myobject TYPE REF TO cl_gos_manager,
lo_container TYPE REF TO cl_gui_custom_container,
ls_object TYPE borident. "BOR Identifier
ls_object-objkey = vbak-vbeln.
ls_object-objtype = 'BUS2032'.
CREATE OBJECT lo_myobject.
CALL METHOD lo_myobject->start_service_direct
EXPORTING ip_service = 'VIEW_ATTA'
is_object = ls_object
io_container = lo_container
EXCEPTIONS OTHERS = 2.
*[Display Toolbox]
CALL METHOD lo_myobject->DISPLAY_TOOLBOX
EXPORTING is_object = ls_object
io_container = lo_container
EXCEPTIONS OTHERS = 2.
*} INSERT</b>
ENDFORM.
(2) Try open VA03 and insert attachment at Service for Object.
(3) Reopen VA03, attachment list displayed suddenly.
<i>Reference Source# SAP Library, search 'Starting Only One Service Directly'.</i>
<b>NOTE:</b> You can use another relevant object by SE24 -> CL_GOS_MANAGER
Maybe you are looking for
-
How do I change the email address associated with a Firefox account?
I will be purchasing a new computer and want to sync my Firefox account so the new PC will have my bookmarks. The problem is the email address associated with my Firefox account hasn't been active in over a year. How do I go about changing the associ
-
I need help getting itunes on my new computer. old one crashed
My old computer crashed, I downloaded iTunes on my new computer and need help getting all of my stuff on it that I had. I did 'home share' to see if that worked, and it didnt. Also, on my old computer, when I synced my iPad & my husbands iPod, it did
-
Attaching e-mails to the interaction record(Activity) via ERMS set up
Hi Experts, 1. Activity (Interaction record) to be created automatically on receiving an email. 2. Once the acitivity is created then it must be routed to employee responsible based on certain rules. For
-
Surround speakers not working with 12.1.0.71
The latest version of iTunes no plays surround speakers. Front left and right work fine. WinAmp and MediaMonkey both work fine with all speakers. Only option in preferences is Windows Audio Session. Windows 8.1
-
When I try to watch a video sent to me on facebook,when I try to go to my yahoo,when I first downloaded I believe I have duplicate add-ons because they were not loaded,my Norton anti-virus does not allow afew of the foxfire add-ons etc,etc,etc can so