-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating Picklist with controlling field and controlling value #2
Comments
check long line , it should not add xsi:picklistvalue , as per the metadata api document |
Maybe this is the issue try, first_dependent.type = null; this will stop it sending the xsi:type. You don't show what the error is though, have you checked that? If you dump out the ID returned via results[0].id you can then issue some Anonymous Apex calls to checkAsync to get the result and error message. Unless you have implemented in your page an actionPoller to do this for you. |
Here is the example for Creating picklist field , with controlling field , and controlling field values
and here is the code to update picklist field
|
Thanks for posting your solution code here! I've updated the example Apex class with it. Sounds like you had fun (?) working it out! If you can, you should blog more generally about what it is your doing. From the looks of this code, looks kinda interesting! ;-) |
Hi , I dont know whether you had time to look at it , but if you can just check it out once , that would be great , |
That is frustrating. I think I have answered this question though, Issue 4? #4 |
Hi , i been working on creating picklist , updating and assign to controlling field
and i came across an issues . that might interest you .
so ..
suppose there is a relation : controlling field : picklist..c : values : first, second, third
and then dependent picklist : dependent_picklist..c , values : -none-
and now i write code to insert new value: "first_dependent" in dependent picklist
code is saving and running fine
But it WONT INSERT any value in dependent picklist cause
: its sending update metadata as follows :
Please do let me know your thoughts on this
The text was updated successfully, but these errors were encountered: