How to fill a field with after changing another field in a multi form?
Hi,
I have multi occurence form in which multiple record are showeds and/or added.
One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.
My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.
I tried point to the other occurences but this was not succesfull
See script
So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.
data.p1.spare_parts.spare_parts::change: - (JavaScript, client) -
p1.spare_parts.DefectPart.rawValue = xfa.event.newText;
Can anyone help to solve this problem
Thanks
Christophe Van Mechelen
hi,
Your code is right, i dont know why its not working,
try this,
dropdown field in change event,
var c = xfa.host.newtext
textfield1.rawValue = c;
(or)
textfield1.rawValue = xfa.event.newText;
by
Parthi
Similar Messages
-
Thanks in advance for any help and advice. I am trying to set a validation for one field that would make sure that the amount entered is 25% of a different field. I tried setting up a validation, but have been unsuccessful. Can anyone offer any insight or solution? Thanks!
You'll need to use a script to do it. Something like this should do:
if (event.value) {
event.rc = true;
var v1 = +this.getField("NameOfOtherField").value;
if (+event.value!=(v1*0.25)) {
app.alert("The value you entered must be 25% of the value of NameOfOtherField.");
event.rc = false;
(This will check if the entered value is exactly 25% of the other value... If you meant something else, please clarify) -
How to fill internal table with selection screen field.
Hi all,
i am new to sap . pls tell me how to fill internal table with selection screen field.Hi,
Please see the example below:-
I have used both select-options and parameter on the selection-screen.
Understand the same.
* type declaration
TYPES: BEGIN OF t_matnr,
matnr TYPE matnr,
END OF t_matnr,
BEGIN OF t_vbeln,
vbeln TYPE vbeln,
END OF t_vbeln.
* internal table declaration
DATA : it_mara TYPE STANDARD TABLE OF t_matnr,
it_vbeln TYPE STANDARD TABLE OF t_vbeln.
* workarea declaration
DATA : wa_mara TYPE t_matnr,
wa_vbeln TYPE t_vbeln.
* selection-screen field
SELECTION-SCREEN: BEGIN OF BLOCK b1.
PARAMETERS : p_matnr TYPE matnr.
SELECT-OPTIONS : s_vbeln FOR wa_vbeln-vbeln.
SELECTION-SCREEN: END OF BLOCK b1.
START-OF-SELECTION.
* I am adding parameter value to my internal table
wa_mara-matnr = p_matnr.
APPEND wa_mara TO it_mara.
* I am adding select-options value to an internal table
LOOP AT s_vbeln.
wa_vbeln-vbeln = s_vbeln-low.
APPEND wa_vbeln TO it_vbeln.
ENDLOOP.
Regards,
Ankur Parab -
How to fill a symbol with color
How to fill a symbol with color?
Good day!
What do you mean by »symbol« in this case?
Is this on a Layer of its own or is it part of a photograph?
Could you please post a screenshot with the Layers Panel visible?
Regards,
Pfaffenbichler -
How to find "menge" in "me21n" after change?
How to find "menge" in "me21n" after change?
The user create new order in me21n,
He insert new quantity ( for example 105 ) ,
And after it ( he change to ) 106 ,
i want to see those 106 parts in user exit MM06E005 (exit 6 , 7 , 8 )
But i see the old input of 105 parts and not the last input 106 parts ,
The structures of the exit not supplies this data ,
so , in which parameter/structure/memory I can find it ( in the exits ) ?i am talking about creating order , new one ,
i insert the data and expect to see the data ,there is no order number or line and no database record .
the tables in the exit just keep the change befor
the last one .
for example , i put in the quantity 109 and now 110
i see the 109 , where i can see the last input ( 110 ) ?
thanks any way . -
How can I modify the contacts template in either iCloud, my iPhone, or my iPad to display additional fields that I always use ... example: How can I get Job Title to always be a fillable field with out selecting "add field" everytime?
Let the HairSalon implement the java.lang.Comparable interface. You'll need to write code for
public int compareTo(Object o1, Object o2)
The compare method would cast the Objects to HairSalons and return the difference in price.
Then use java.util.Arrays.sort(Object []); -
hi friends
i am trying to set peoples or groups field in sharepoint list form with current user login name
here my code
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
<script type="text/javascript">
$(document).ready(function NewItemView () {
var currentUser;
if (SP.ClientContext != null) {
SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
else {
SP.SOD.executeFunc('sp.js', null, getCurrentUser);
function getCurrentUser() {
var context = new SP.ClientContext.get_current();
var web = context.get_web();
currentUser = web.get_currentUser();
context.load(currentUser);
context.executeQueryAsync(onSuccessMethod, onRequestFail);
function onSuccessMethod(sender, args) {
var account = currentUser.get_loginName();
var accountEmail = currentUser.get_email();
var currentUserAccount = account.substring(account.indexOf("|") + 1);
SetAndResolvePeoplePicker("requester",account);
// This function runs if the executeQueryAsync call fails.
function onRequestFail(sender, args) {
alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
function SetAndResolvePeoplePicker(fieldName, userAccountName) {
var controlName = fieldName;
var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
peoplePickerEditor.val(userAccountName);
spPeoplePicker.AddUnresolvedUserFromEditor(true);
</script>
but it is not working
please help meHi,
According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
To set "peoples or groups" field with current user "login name”, you can use the below code:
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
<script type="text/javascript">
function SetPickerValue(pickerid, key, dispval) {
var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
xml = xml + PreparePickerEntityXml(key, dispval);
xml = xml + '</Entities>';
EntityEditorCallback(xml, pickerid, true);
function PreparePickerEntityXml(key, dispval) {
return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
function GetCurrentUserAndInsertIntoUserField() {
var context = new SP.ClientContext.get_current();
var web = context.get_web();
this._currentUser = web.get_currentUser();
context.load(this._currentUser);
context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
Function.createDelegate(this, this.onFailure));
function onSuccess(sender, args) {
SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
this._currentUser.get_title());
function onFaiure(sender, args) {
alert(args.get_message() + ' ' + args.get_stackTrace());
ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
</script>
More information:
http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Replace the empty field with below data content field in xml pub report
Hi Gurus,
Please give me the solution for the Replacement of empty field with below data content field in XML PUBLISHER REPORT.
ex:
Name:Philips.M
Address 1:XP APPTS,
Address 2:S:R ROAD
Address 3:
COUNTRY:INDIA
Here i have to get only address 1,address 2 and the COUNTRY data.I dont want to display Address 3 field here.
Thanks,
DavidI'm not sure if this answers your question but you could try putting out the address all in one item in the SQL eg somthing like:
address1 || DECODE(address1, NULL, NULL, 'newline character') ||
address2 || DECODE(address2, NULL, NULL, 'newline character') ||
address3 || DECODE(address3, NULL, NULL, 'newline character')
where 'newline character' is somthing like CHR(12)
Dave -
Making a DFF field mandatory based on another field
Hello All,
We have a requirement where in we need to make a DFF field mandatory based on another field.
example:
DFF has two fields :
Filed1 : values 'Email', 'Fax'
Filed2
If 'Email' is selected in 'Field1' then Field2 should become mandatory.
Any inputs on this will be really helpful.
Thanks & Regards,
Satya.hi kumar3a,
recently, i spent considerable amount of time wracking my brain on a similar problem. the nearest i came to a solution was when i used a forms personalisation. mind you, forms personalisation will not work directly on the DFF window, so it has to be approached in a roundabout sort of way.
i got this information from an Oracle Support personnel - MOS Note 1078348.1.
i would start with the flexfield segment as "not required", and then using Forms Personalization, i would make it "required". i would try to figure out how to establish a condition where the previous 'required' flexfield segment's value is checked to see if this 'not required' segment needs to be made 'required'. in theory, this should solve the issue. i gave up on it because the forms personalisation would need to cover WHEN-VALIDATE trigger event, and we had close to 100 validations going on through other preexisting forms personalisations, which rendered it near impossible to employ this method.
best regards. -
In sm30, when save, how to fill the table with the system data in the table
Hi all, in SM30, we have user name and time fields, when we create record, after we click the SAVE button, it will automatically fill the fields with the system data, how can we realize it?
Hi ,
Do like this.
1. Go to SE11 -> give your table name and press on change button .
2.Go to Menu->Utilities-> Table Maintainance Generator , then it will take you another screen .
3.Assign Functin group if already have one , other wise create function group and assign
4.Go to Menu->Environment->Modification->Events , again it will take you to another screen
5.Click on new entries
->Now press F4 in T column . Select<u> "01" - Before saving the data in the database</u> and in form routinue give any name of the routinue like "SAVE_USER_DATA" and press enter then u can see an editor symbol in next column click on that it will take you ABAP editor there type this code .
ztable-username = sy-uname.
ztable-createtime = sy-uziet.
check and activate the code .
With this your job will be complete . Now while entering data just leave columns blank , they will insert corresponding username and time
Don't forget award points if it helps you.
Regards,
Raghav -
How to fill combo box with list of all SQL server
Ok, I know how to find all SQL servers that I need, I have code for that task, and I have Array of all servers.
My problem is ...
I made setup project and do a huge work, and in the end this task appear!
I used ORCA tool to change TextBox (A) template in visual studio (2008 by the way), and I transform first TextBox to ComboBox.
Now, the little part that I'am missing is how to fill this combo box with a result of my function for listin SQL servers?
Can I somehow send combobox object to myMethod:
private void FillCombo(ComboBox cmb)
// do the job
or
instanceOfThisCombo.Items.Add(listOfSQLServers);
please help me to solve this... thanksc#Hi Valerij,
The ComboBox control in an MSI dialog uses the ComboBox table to populate the items in it. To get what you want, you need to update the ComboBox table in the MSI package with your application and run the MSI package. The following KB article describes how to dynamically populate a ListBox control in Windows Installer:
http://support.microsoft.com/kb/291329
This method introduced in the above KB article also applies to populating a ComboBox control in Windows Installer.
I don't think it's possible to run the application as a Custom Action from within the MSI package because the application will modify the content of the MSI package which is currently running. So you need to launch the MSI package from within your application after updating the ComboBox table. In short, when installing, just run your application which updates the ComboBox table and install the MSI package.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu -
How to fill internal table with no data in debugging mode
Hi all,
I modified one existing program.Now I want to test it.I am not given test data.So in the middle of my debugging, I found that one internal table with no data.My problem is how to fill that internal table with few records in that debugging mode just as we change contents in debugging mode.If I want to proceed further means that internal table must have some records.
Please I dont know how to create test data so I am trying to create values temporarily in debugging mode only.
Thanks,
BalajiHi,
In the debugging do the following..
Click the Table button..
Double click on the internal table name..
Then in the bottom of the screen you will get the buttons like CHANGE, INSERT, APPEND, DELETE..
Use the APPEND button to insert records to the internal table..
Thanks,
Naren -
How to default value in collection after intial collection field entered
Hi there,
Am working on gettting to know collections but not really had much to do with them so far.
I have a multi row data entry screen that works great using a collection. Now the boss has decided that the new records require a default value that the users can overwrite if required.
The value i need to default is the second field in the collection but i only want to populate the value after the first field in the collection has been entered.
Could anyone talk me through how i do this please or point me to any relevant documents.
Cheers
LisaHi Lisa,
If you want to default value only after user enters data in another row column, you ll have to write a javascript code that executes after the column is entered
If you have jQuery(already included in apex 4.0) it would make the task of accessing that other column easy.
Otherwise its much more harder work to get I can think of setting the ID's using the pitem_id_* while rendering the editable fields(set it for both the columns..say as COL1_ROWNUM , COL2_ROWNUM ) using APEX_ITEM. Then add an onblur event(using the html attributes parameter of APEX_ITEM api) call a JS function with the rownumber(to identify the row). You can then write the logic for default value inside the function and set the corresponding column with the value.
If you can update about your version and/or if you use any JS libraries, it would be easier to help you any further. -
Acrobat 9 Pro: fields deleted after changing compatibility of Acrobat for 4.0
I have pdf's with many of fields in which I need to change compatibility on Adobe 4.0.
When I try to do this (Save as optimized pdf with the option selected "make compatible with" on "Adobe 4.0 or later") program delete all of fields.
This problem appears after changing OS from Win XP on Win 7 Enterprise 64-bit.
Earlier I didn't have that problem.
I will be grateful for any help, reinstalling Adobe has not helped and I did not find any clues on the internet.Unfortunately I can not share this documents.
However, I noticed that only some of them have above problem. Now I have only to find its cause - changing the OS wasn't the cause of this problem.
Thank you for your interest. -
How to repair Open Directory Master after Changing Hostname
Summary:
How to repair Open Directory after Changing your Server's Hostname (see separate post)
Problem:
I had to change our server's hostname from a private hostname (server.name.private) to a public hostname (name.dyndns.org).
Procedure:
1. Precautions:
Since I was anticipating major dramas I tested the change of hostname on a clone ( I used Super Duper, and I very strongly advise everybody to heed this warning because a change of hostname will corrupt your server services, in particular Open Directory)
Second, I exported the network users from Server Admin and copied the archive to the Drop Folder of the server's local account (because the network accounts will be unavailable after demoting the OD Master.)
2. Change hostname and demote OD Master
a) I re-booted the server from the clone
b) I changed the hostname in Server App and I noticed that the Open Directory Password and the Kerberos database were still stuck with the old hostname.
c) I then demoted to a standalone directory (Server Admin) and I tried to promote the server to an OD Master using the Server App (Manage Network Accounts). Server App always returned an error saying I should check my network settings.
3. List of 'fixes'
I tried the following fixes to no avail (which does not mean that you can skip them)
a) I checked the DNS entries, forward and reverse were working fine (sudo checkip -changehostname)
b) Checked with Lookup in Network Utility, all was fine
c) I deleted all system certificates (Keychain) which showed the name of the previous hostname
( N.B. you need not delete email certificate and private/public keys)
d) I tried to assign a new static IP in Networking Preferences (had no visible result)
e) I re-booted from the working drive and I re-paired permissions on the clone; I ran disk repairs.
Despite all this I could not re-create an OD Master.
I then looked for this dubious folder /var/root/Library/Application Support/Certificate Authority.
I could not find this folder when using the Finder's Go To Folder, nor did "Easy Find" see this folder.
I was about to give up when I read the posts on this page and I entered the Terminal commands
sudo rm -R /var/root/Library/Application\ Support/Certificate\ Authority/
I had not much hope when I set about to re-create the OD Master from the Server App.
But lo and behold !!! I did not trust my eyes when Server App claimed that the OD Master had been successfully created. And indeed, Server admin showed a running OD Master, LDAP, Kerberos and Password Server all running again !
Final touch: re-import the user accounts.
Epilogue:
I woud not have been able to fix this issue had not so many others shared their experience and the working solution.
(Refer : https://discussions.apple.com/thread/3219325?start=0&tstart=0 )
Thank you all !
Let's hope that Apple will fix this annoying issue in the next server update.
Regards,
TwistanHi Rhyan,
Please try clearing the security cache
http://www.sharepointanalysthq.com/2014/05/active-directory-groups-and-sharepoint-security/
https://sergeluca.wordpress.com/2013/07/06/sharepoint-2013-use-ag-groups-yes-butdont-forget-the-security-token-caching-logontokencacheexpirationwindow-and-windowstokenlifetime/
http://webactivedirectory.com/active-directory/windows-active-directory-cached-user-credentials/
Please remember to click 'Mark as Answer' on the answer if it helps you
Maybe you are looking for
-
File Association List -- Deleting a Deleted Program
I deleted a text editor that had associated itself with .c, .txt, .cpp, etc and I can't seem to be able to completely remove it from the drop-down list when I go to Get Info->Open With. The app is gone from the system. How do I get rid of it there? I
-
How can I achieve good validation check on String Input?
This is a portion of my code,am just starting to learn java programming.public class Thickness public Thickness(){ public static void main(String[]args) int thickness=0; double length; String strL; strL=JOptionPane.showInputDialog(null,"Enter the len
-
Standard Authentication in JSF
well i have a basic doubt of what is stanard authentication in JSF... well i use jsf and sdo...i use data objects and check whether username exists.... i dont know what is standard authentication?? how do i do that in JSF RAD....??? how do i protect
-
Biztalk+SapConnector -- XI
Hi, we are comparing XI and Biztalk+SapConnector. Is there anyone out there who has also done this? Any remarks are welcome!! [email protected]
-
hi all, my application uses SQL queries to pull data from Oracle10g. now i'm going to enhance it with OLAP support don know how to use JAVA OLAP APIs to pull data from relational tables after reading documents provided in www.oracle.com/.... i could