How to get the vlaue from an input field without hitting the enter button ?
Hello All,
Is there some way to read the values of an input field that was filled in by an user eg ..
String userEntry = wdContect.<UIElement>.value;
So far, I am only able to achieve this using the onEnter property whoch really is not very user friendly since I can only read in the values only if the user hits enter.
Any help will be appreciated. Thank you.
from
Kwok Wei
1. Create a value attribute (MyText) in the controller context
2. Create a value attribute (MyText) in the view context
3. Map view context attribute to controller context attribute
4. Create InputField in the view and map the "value" attribute to the MyText view context attribute
5. Create Action on view (Send)
6. Create Send button and specify Send action as onAction attribute
7. Create executeSend() method on controller
8. onActionSend() implementation:
public void onActionSend(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionSend(ServerEvent)
wdThis.wdGet<controllername>Controller().executeSend();
//@@end
9. executeSend() implementation:
public void executeSend( )
//@@begin executeSend()
// Get MyText
String MyText = wdContext.currentContextElement().getMyText();
Similar Messages
-
How to get Numric value from a Char field in the database?
I have the following values in a column in Database.
COMP
GRADE
CANC
CANCELLED
Comp
Complete
INCOMP
NC
NS
85%
79
88 .... etc....
I have to take the value from this field if it is a Numeric other wise I have to ignore that value.
Please let me know how to handle this?
Thanks,
LakshmiThanks for the inputs.
Here I want to take the value if it is numeric else I
will ignore that record.
Please let me know how to validate the data for a
Numeric value.
I don't want to stop my program by throwing these
exceptions.The sample code catches the exception. At that point you can do whatever you want (set a boolean to say the value is not a number, etc.) - the program does not stop. -
HT5621 how to get my apps from my old apple id to the new one ?
hi, i have an old apple id which i dont use that email anymore , i just use it as apple ID, how can I bring all my apps to my new apple I
You cannot.
All purchases will always be tied to the account from which they were purchased.
Why would you start a new account? Just update the email address for the original account -
How to save changed data from a input field to the source structure
Hi,
I have a small problem with the onChange event with HTML input fields.
When changing a value of a input field or by creating a new value for a field the OnChange event is called by moving away the mouse pointer....
get_form_field( 'field_name' ).
But is it possible to write back the new value in the source field ls_screenstructure_field1 without using the OnInputProcessing?
I ask because my application´s structures have a lot of fields that should be filled and changed by input fields.
It´s not comfortable to request every new value with .. = request->get_form_field(... .
Thanks for helping.
Cheers,
Andréyou wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
<htmlb:inputField id = "test"
alignment = "LEFT"
size = "6"
required = "TRUE"
doValidate = "TRUE"
type = "INTEGER"
/>
<bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
<script for="test" event=onchange type="text/javascript">
alert(this.value);
ValueChanged();
</SCRIPT>
if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
Hope this helps.
do let us know if you need help in how to capture this value in oninputprocessing.
Regards
Raja -
How to transfer photo's from LR to Blurb without using the Book option in LR?
Without using the Book option in LR can one transfer photo's to Blurb?
There is no way like with Aperture where you can drag your photo from Aperture to Blurb?
-
Open a subreport from an existing report without hitting the database
Hello Experts,
I want to open a webi subreport with the data from an exisiting webi report directly not from database.currently i am using hyperlink on some measure values and in theses hyperlink, i am using opendocument query and passing the values in the filters created at subreport side,but every time i clicked on hyperlink its opening the subreport but taking data from data base instead of existing report.
i also tried in this way by passing a context from parent report :
I am having country column in my report which is having many countries, i want that when i click on england it should open the subreport with the data only for england from parent report not from database.
="<a href=\"http://server:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sDocName="URLEncode("aaa")"&sReportName="URLEncode("aaa")"&sReportPart=table name at subreprt""&sPartContext=/country[england]""&sWindow=New""&sRefresh=N""\" title=\"click\" target=\"_new\" nav=\"web\">"[country]"</a>"
Thanks in Advance:)Hi, Harry.
Have you tried editing your subreport query properties? uncheck Refreshable and Editable checkboxes. -
How to show the subtotal value of a field without showing the rows in ALV?
Dear All,
In my ALV I am showing the sub total value of a calculated field. But the requirement is, only the category and sub total value will be shown in the ALV not the all rows, i,e
CATEGORY VALUE
Z01 186,000 (the subtotal value)
Here, the rows whose values are calculated to 186,000 will not appear. Plz give some idea.
With regards,
Rosaline.Hi
Using the fieldcatalog, you can achieve this.
no_out(1) type c, " (O)blig.(X)no out
use this in fieldcatelog. u can achieve this.
All the best
Edited by: Sudeesh Ravindran on Mar 23, 2011 9:22 AM -
How to get rid of extra browser support files without hosing the web help
I produce web help for a a web app that is restricted to IE.
When I generate web help, RH spits out dozens of files that support
help within other browsers. We tried deleting these "extra" files,
but it hosed the help. Does anyone know of a way to either 1)
generate without these files or 2) remove the files without
breaking web help?Welcome to our community, Karen
If you took them out and it hosed the help, it would seem
they are actually serving *SOME* function, no?
I'd simply ignore things and just accept the fact that you
get a lot of files with WebHelp.
Cheers... Rick -
How do I delete content from a drop zone without deleting the drop zone?
I can't seem to figure this out, and I feel silly about it! Your help is much appreciated
Select the drop zone layer and then in the inspector image tab click on the clear button at the bottom.
-
How to pass the data from a input table to RFC data service?
Hi,
I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
Thanks for your answer.Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
Thanks. -
Hi All,
I am a newbie to ABAP Webdynpro.I would liketo know how should I get the value from an input field at runtime?
Thanks,MuktaBy reading the context attribute which bound to inputfield, you can get the value.
Say you have a node called 'MAIN_NODE' and has the attribute 'INPUT_VALUE', which is bound to the Inputfield.
DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
* navigate from <CONTEXT> to <MAIN_NODE> via lead selection
LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
* get element via lead selection
LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT( ).
* get single attribute
LO_EL_MAIN_NODE->GET_ATTRIBUTE(
EXPORTING
NAME = `INPUT_VALUE`
IMPORTING
VALUE = LV_INP_VALUE ). "LV_INP_VALUE will have the value of inputfield
Raja T
Message was edited by:
Raja Thangamani -
How Can I get my bookmarks From My Sync account without my sync key after a hard drive crash?
My Computer Hard Drive crashed before I could back up my Sync Key or add another device. How can I get My bookmarks from my sync account without resetting the sync key and wiping my data?
Not from Mozilla. Nobody knows your Sync Key except for you. <br />
Is that hard drive usable at all? Like as an external disk in a USB hard drive enclosure?
If so, you can recover your Firefox data from that drive. <br />
http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
Your old Profile is located here in Vista & Win7: <br />
''drive'':\Users\''Windows login user name''\AppData\Roaming\Mozilla\Firefox\Profiles\''profile_name'' <br />
Make sure that you unhide "Hidden files and folder" in the Control Panel > Folder Options -> View -
Stream-in images from client to server,without running the transmit code
Hello all,
Im using JMF for my current project.Right now,I am trying to only recieve images from the client without the client transmitting it.That is I dont want the transmit code to run on the client.
I should just be able to stream in the images from client to server, without running the transmit code on client.
Can this be done?
Thanks in advancesuppigs wrote:
Can I know more about this?Sure.
<Side A>
You'd just need to write an application that doesn't have a GUI (so, a console-based application) that listens on some pre-determined port for a message to start broadcasting. Maybe you'd send it the IP/PORT number to start broadcasting on. Once it receives that message, it'd start broadcasting the web cam to the IP/PORT number until it received a message to stop. Once it stops, it'll just go back to waiting for the next "start" signal.
<Side B>
On the other side, you'd write an application that sends the start messages, receives/displays the videos, and then sends the stop signal. This will have a GUI, and be your "control program" so to speak.
Then, once of have both of those programs working...if you're using Linux, you're done. If you're using Windows, you'd need to modify the <Side A> program so that it can run as a Windows service.
There are a lot of ways to do this, you can google it or look at the following link:
[http://twit88.com/blog/2007/09/19/open-source-software-to-start-up-java-as-windows-serviceunix-daemon/] -
How to get a character from input stream withjout pressing RETURN key?
In C, we could use getch() form <conio.h> to get a character from the input steam without pressing the return/enter key. How could I tranlate this function for use in Java?
public static char readChar()
int charAsInt = -1; //To keep the compiler happy
try
charAsInt = System.in.read();
catch(IOException e)
System.out.println(e.getMessage());
System.out.println("Fatal error. Ending Program.");
System.exit(0);
return (char)charAsInt;
} -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01
Maybe you are looking for
-
[GTX 560Ti] Artifacts and Crashes.
I'll try to make this as painless as possible for it has been a huge pain in the rear for me. I've owned this card since April 2011 and since the very first time I used it to play games it worked GREAT!! Later on that same night I used it to watch a
-
24" Cinema Display (LED) with 2008 Mac Pro
My 23" Cinema Display monitor is beginning to show signs of aging, having been used with two Mac Pros and a G5. I'd like to upgrade the monitor to a 24" LED Cinema Display, but the 2008 Mac Pro doesn't have the mini-DVI port. Is there any upgrade pat
-
Button w/in movie clip not working
I know this question has been raised before and it usually just boils down to using the frame #'s and labels. But, even with that it is not working. I have a map of the US and when each state is rolled over I would like a menu to appear - this menu i
-
I'm attempting CSH WebHelp from IE7 and getting the following error message: "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus." The mesage goes on to refer to whtdhtml.htm. Any suggest
-
Recommended USB 2.0 Hub for iMac G5?
It's strange that Apple doesn't offer something in the online store and I'm not seeing an obvious choice. Any recommendations on a hub, even for a few extra powered USB devices? Seems that most devices want 2.0 power. Thanks