Supppose I have two different business process flow for an entity, is it possible, from the onLoad event of the form, to change which flow is displayed ?
Should I try and modify the order in which the flows are shown depending on some conditions ? If that is even possible ?
Thanks
Yes. You want Xrm.Page.data.process.setActiveProcess(processId, callbackFunction)
See Xrm.Page.data.process for reference
Related
I have added Financial dimension tab on enterprise portal lead's detail page. The web-part is controlled by AX class DimensionDefaultingEPController.
I need to make only one attribute of the dimension visible. How do I achieve this ?
As per my approach, I have find the web menu item of corresponding web-menu and tried to search that if its possible to check the web menu item as a caller. But didn't find a way to achieve this too. Please help.....
Regards,
Rishi
Checking the caller is not a good idea anyway.
Better is to check the element.args parameters.
You could sniff the parmEnum property value provided by the menu item.
Supply different menu items for each different context.
Is it possible to automatically # a field on a Google Form? I would need the numbering to appear on the actual form and not just on the spreadsheet it ties to. The idea is so that someone could place an order, fill out the form, and give the automatically generated # to the vendor.
Please point me in the right direction if this is possible.
Thanks!
Have an item for this number and define it as required and select-from-a-list. Generate the number (somehow?) in the OnLoad trigger and populate this item. The number being the only one to select user has to select and send with the form. Bit crude solution, but workable I think.
Better option would be to make that item a section header and populate in onload trigger as above.
Available types of triggers indicates that there is no onLoad trigger within Google Forms API. However, I believe it is possible to use jQuery to search for '#' within the form and increment the value.
Following the example as documented in the following http://symfony.com/doc/current/cookbook/form/dynamic_form_generation.html
This adds the fields in the event subscriber first, then adds the fields that have been added in the form type.
Does anybody know how to change the ordering around so that the form type fields appear first in the form view, then the fields added in the event subscriber appear after?
Thanks in advance
I had the same problem. I solved it by moving form building ($builder->add(...)) from MyFormType::buildForm() to listener leaving there only $builder->addEventSubscriber(...) statement.
There's two different manner to order your fields,
When building your form, you've to add fields according to the order
you went to display them, it allows you to get the right behavior
using form_widget(form).
Customize your form rendering. You can then put every part of
your form in the right position so that it looks the way you want.
I am new to MATE framework and I have been digging around some sample codes so that i can do the following:
On clicking a button (on a canvas)
Display a Panel.
The issue is that i am not trying to pass any value hence not sure of how/ what should be defined as sourcekey and targetkey. If this is the case, then how should one define the propertyinjector details.
most examples that are floating around contains details of reading data from a source and populating the same on a UI/ Display component.
Thanks
Srinivasan S
for this one you shouldn't use propertyInjection you should dispatch an event (you can make it custom), then you need to catch the event in the appropriate place and simply do whatever you want with it.
I have a List component from which I'd like to be able to remove items using drag & drop, but without having a specific target. If you use the mac, the behaviour I'm looking for is something like what the Dock uses; when you drag something out of the bounds of the control it should get an icon that indicates that it'll be deleted (OSX uses a cloud or something?) and then if you release it it will be removed from the list.
How can I do this?
(If I need to provide a more clear description, please comment; I'll fill in what I can)
In my experience with drag/drop in Flex, you cannot simply drag something out and handle that. There is no dragOut event (unfortunately), so that would leave you up to the task of writing dragOver and dragDrop listeners on all the containers surrounding your dragInitiator and handling the process accordingly.
It's more time consuming and can become complicated if any of these controls already have specific dragOver and dragDrop event handlers.
Hope this helps.
Having no Flex experience all I can offer is some psuedo code which resembles how I implemented a similar effect in JavaScript, but hopefully it will get you started.
Essentially what you'll want to do is during your drag event measure the current coordinates of the object you're dragging to see if they intersect the original container and when they fall outside of its bounds call the logic to update the icon in order to indicate it will be removed. Then, on the drop event, check the coordinates once more and delete the item if needed.