I would like to populate fields after selecting item :
step1 (ok) :
step 2:
and step 3 (what i try to do...) :
i can isolate info in Json Result but i don't know how to place it in the right field.
example username must populate "identifiant" field :
Related
I have three tables (simplified for this question):
Teams: [team_id, team_name]
Users: [user_id, user_name]
Teams_x_Users: [id, team_id_fk, user_id_fk]
(Screenshot below) On an Update User Form, I placed a table with the selected user's assigned teams for viewing/deleting. Below that, I have a "Teams" drop-down for assigning teams from the Teams table to the user.
In its current state, the drop-down contains all available Teams (projected values).
I want the drop-down to contain available Teams NOT currently assigned to the user.
I took a shot in the dark and tried setting up a new Team_Unselected Datasource with the query expression Teams_x_Users.Users.user_id != :userid, but receive the following error:
Cannot complete binding from query.parameters.userid to #datasources.Teams_x_Users.item.Users.user_id. Unexpected error on binding initial sync write : (TypeError) : Cannot read property 'wb' of null in Teams_Unselected (Teams)
I have a workflow to manage employee petitions, that starts with some fields at starter form. The next task, allows a responsable user to approve or reject the initiator user's petition.
I want to show the values of starting form into the approve/reject form, so I created a custom .ftl file for every field that I want print the label and the value. Now I have hard-coded the values to the this:
My problem here, is how to get the value from the first form and print it at the second form (values that I need are where says "200€" and my name).
I'm using Alfresco Community 5.1 and his own Activiti.
Thanks.
Solution 1 : keep IDs of the fields identical in both the forms. this will make the field editable in the second form.
Solution 2 : create a process variable, set its value after the first form has been submitted. then, in the second form display the value of the process variable.
I have a column "full name" in a list and I want to configure drill down for it so that when I click on a particular user's full name, it displays all the bio data of that user from another table.
My requirement is that at the front end, it should show the full names of the users, but when I click on the user's name, it should pass E-mail address of the user for the drill down.
Please need help for doing it.
I'm going to assume you are using a list object. the instructions for a crosstab would be slightly different:
Add the item you want to pass to the drill-through target to your query
In the report page, select the list
Click on the ellipses (...) in the 'Properties' property of the list object
Check the box next to the data item that you added to the query in step 1 and click 'OK'
When you define the drill-through parameters, select 'Pass the data item value' for the method and the data item added to the query in step 1 as the Value.
I'm trying to implement an update procedure like the one in this blog post (via extra entity and workflow updating account, triggered when the new entity is being created)
http://www.powerobjects.com/2013/08/01/updating-records-in-microsoft-dynamics-crm/
In my list and the new entity "Account Update" I have 3 fields for the full name of a company (name, name_2, name_3).
In my workflow I want to put these 3 together and combine their values in the Account field "Company" (the company's name).
In the process I tried to insert them via the "Form Assistant" and in the field "Company" I now have the following entry:
{Name(Account Update);Name_2(Account Update);Name_3(Account Update)}
but it doesn't seem to work. After my import and update of the account (which ends successful) the value in "Company" is only the value of the first name field.
Is it possible to combine values?
What exactly does it do, when I choose more than one field in the Form Assistant and say OK?
So at last I figured out how to archive it.
With the "Form Assistant" you can combine or add multiple field values to one new field but it is a bit tricky.
The value in the process update the properies have to look like this:
{Name(Account Update)} {Name_2(Account Update)} {Name_3(Account Update)}
BUT
It does not work if you enter this as text, you have to add the fields one after another so that they are recognized as fields (and marked yellow).
Click into the field (here: "Company").
Then choose the first field in the Form Assistant. Click "Add", choose it in the list below and click "OK". Now the field is in the field "Company".
Now go behind the end of the text in the field make a space and then choose and add the second field (clear the list in the Form Assistant before so that now only the second field is in the list)
So it's right if it looks like:
{Name(Account Update)} {Name_2(Account Update)}
Wrong if looks like following (happens when you keep the first field in the list before adding the second with "OK")
{Name(Account Update);Name_2(Account Update)}
I have a content type which has 4 CCK fields.
Field name are :
field_device_data_card_id
field_device_model
field_device_type
field_device_id
These fields are in their respective sequence.
all fields are marked as mandatory. when i click submit button without filling any data in required fields, it generate error messages for mandatory fields but the sequence of error messages are not proper.
it is displayed in following sequence ->
Device Data Card ID field is required.
Device ID field is required.
Device Model field is required.
Please select a device type.
while it should be like ->
Device Data Card ID field is required.
Device Model field is required.
Please select a device type.
Device ID field is required.
Please provide me a solution so that i can sequence the error messages.
Thanks
.. add your custom validator via hook_form_alter and:
function form_name_validate($form, &$form_state) {
$tmp_msg = drupal_get_messages('error');
// change order or modify on your own of $tmp_msg
drupal_set_message($tmp_msg,'error');
}