on 11-10-2009 10:28 PM
All ,
I have three fields on the adobe form , pernr , first name and last name . I want concatenate First letter of first name , First letter of last name and employee number .
I am able to concatenate it without breaking it . I used CONCAT statement . I used the value in binding .
Here the tricky part how I can read it the way I want it , I used Left(S,N) . Where is S is the variable name and N is position . It is not working fine with binding variable name. I also created 3 global variable, but still getting error u201CArgument mismatch in property of function argument u201C.
Please advice. Any example would be great
Thanks,
Saquib
Hi,
Hi This code working for me.
var s = "tttt"
var n = 1
xfa.host.messageBox(Left(s,n))
Initialize the variable n with any numeric value and try this.
Kind Regards,
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have absolutely no experience with ISR. But I hope ABAP and JS works even in ISR:))
YOu say you have completely custom form. That means you can do anthing inside it:)) If you´re not an author of the form and you cannot contact him try this:
- in the form check the binding for the drop down you need to enhance
- you have a context/ data node which is to be changed
- before the form is displayed, some initialization must happen
- in this initialization i would do all the concatenations etc. so in the form will appear the texts you want
I don´t know for sure, this is possible with ISR. If not my last idea is to work with the drop down object properties in the designer (layout of the form). Here:
- you can specify texts on tab Object - Field - List items
- you can specify which texts are bound to which internal codes on Object - Binding tab
That means you can have internal (DB/ ABAP) code "01" and in drop down you see "Mariah Carey":))
You can also experiment with dynamic binding using Object - Binding tab - Specify items values (here you don´t work with the tab below but click on the text "Specify items values").
Hope some of these helps. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First: in JS there are no types, there is just VAR variable type.
Second: Can you do the coding in the ABAP?
Do you have your function modules to generate the form, pass data etc.? Or WD app? You´d better add your coding here.
If not, you can use the interface initialization to do this, but I cannot recommend doing this if it is not necessary.
You can use the usual ABAP style VAR+2(2) etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are not on the same page . We are implementing ISR processes via T-code HRASR_DT. I donu2019t see any BADI because we have totally custom process and form . We want to do the followings
- On form there is position , when drop down It should show position and position description .
- Read first letter from first name, First letter from last name and EE# and update IT105 field in back end . ( pa0105)
I think I can code:-), That what I`ve been doing from last 10 years ....
Thanks,
Khan
SAP recommends not to script in forms if you do not need it. And imho you don´t need it. You´d better do this concatenation in your ABAP coding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To get the substring form a string you can use the below code snippet.
var l_str1 = "Adobe Forms";
var l_str2 = l_str1.substring(0,1); // or l_str1.substr(0,1);
Regards
Pradeep Goli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.