Using Input widgets For calculations , Bonitasoft - widget

How can i do this
i followed this tutorial
https://community.bonitasoft.com/questions-and-answers/computed-fields-ui-designer
i have been able to create a custom widget for calculations works fine , but i want to have the same like thing in an input widget (Have the two input widgets use something like a javascript expression to calculate)
It should calculate and give the results in a third input box (Editbox)
I am using the UI Designer and my screen looks like this :

Actually to do some computation you simply need to declare a form variable with the value initialized using JavaScript. This JavaScript can access the others form variables (variables bind with your form widgets "value" property), do the math and update other form variables.

Related

Grid inside an Access form

I was looking through some Access templates, and bumped into the Task Database.
It uses a grid inside a form, but I can't understand what component it's using:
When I look in Design View I can only see a list of fields:
I guess this is pretty basic and sure it's covered in MSDN, but it seems I'm unable to find proper search keywords.
It's a Format Property of the Form.
In the Property Sheet, the property Default View must be set on Split Form.
You can choose whether the datasheet is on top or below the form by changing the property Split Form Orientation.
You can adjust the splitter to view the datasheet only and then hide the splitter handle by changing to No the property Split Form Splitter.

How to Prefill a Foundry Form embedded in a Slate document (using handlebars)?

I am trying to prefill a form embedded in a Slate document but without success.
The format bellow seems not to work:
"prefilledValues": {"uri_name1":"prefilledvalue1","uri_name2":"prefilledvalue1"...}
Furthermore, can we use Handlebars to prefill a form?
Thank you for your help.
First you have to setup your Form correctly to make it prefillable. Open the form, select an element that you want to prefill and choose "Configure field".
This will open the Properties-panel on the right side of your form. On the bottom of the Properties select "Advanced". Then a field called "UrlParam" will be displayed. This is where you set the parameter name that you will later call in Slate for prefilling. In my example I set it to "Threshold".
In Slate, add a Foundry Form-widget and set the Form RID to the RID of your Form. Now you should be able to successfully add a prefilled value using the UrlParam that you set in the Form like this:
Now you should see that the embedded Form in Slate is displaying your prefilled value:
And yes, Handlebars can be used to prefill a form, but it seems like that it only accepts strings. So if you have a numeric value, make sure to convert it to String with the helper-function toString, for example if you have a variable called v_test with a value of 4:
That should lead to this result:

how to avoid repetition of <select></select>?

Say, I have 50 input fields and in each field there is a dropdown list having options 1, 2, 3, .., 100.
Simply it can be done by inserting the long list of options in every input fields by commands.
Is there anyway by which we can write the full list only for one input field and refer it in the other input fields
If I'm understanding this question correctly this sounds like it would be a great case for using some server side logic like php or asp. A simple FOR loop would make it easy to maintain without adding the complexity / reliance on JavaScript that a client - side function brings into play.
You could use jQuery to append the options list to all dropdown lists with a certain class name in the $().ready() event handler.
JSFiddle Link

Flex Dynamic Component runtime Creation

I jus Want to know, how could be possible to create Dynamic Components in Flex run Time.
For eg: creating a combo box with change Handler Dynamically, text box Dynamically,
Now, the value of combo box and textbox should place in a VO Class and the VO class also to be created Dynamically,
user have to provide how many fields they need and wat are the components needed and according to tat Dynamic VO has to Create in run Time,
Hope This is clear,
kindly suggest me a Example, Thankxxx in Advance
To create Dynamic class is tricky.
As per your requirement you want some combo box with change Handler, text box, etc.
Once you know what component you have to display according to vo which is been created dynamically.
You can create One custom component which contains your all required component (i.e. combo box, , text box, etc. )
or
Can create different custom component. Selection is yours.
There should be one parameter/condition, which will decide which component should be displayed at run time. Like adding switch case or your own logic.
While creating combo box you can add addEventListner in actionscript to handle change even and can dispatch custom event or can perform your defined operation.
In the same way you can addEventlistner to your custom component (ex. – text box, checkbox, etc.).
There should be unique key for all if user want to create combo box unique key should be 1(sample/any dynamic value can be retrived from VO), text box unique key should be 2, etc…. it will help you while creating dynamic component.
Make sure while creating component you have to use concept of set and get method for passing parameter.
Create only required component by using proper Flex component life cycle.
Hope this may help you bit as rough understanding.. or can search for better approach..

Dojo/HTML equivalent for list box control

We are porting our MFC based client to Dojo. Is there any widget similar to listbox control. At present I am using DataGrid, but that seems heavy and overkill for our purposes. Alternatively what is best widget to replace listbox.
Update: I have already looked at dijit.form.multiselect, and I dont think that meets my requirement. MFC Listbox typically looks like this. I dont see (or rather dont know) how to replicate this with multiselect. It is possible that DataGrid is best fit for the control.
If you use dojo 1.7, take a look at the new DGrid.
For an example looking like yours, go to the tests page and pickup the Selector.html example.
Here are some options depending on which part of the ListBox you want to create:
dijit.Dialog to create a basic dialog box.
dijit.form.FilteringSelect to create a drop-down with your options (single select only).
You could also use radio buttons or checkboxes for your options depending on whether multiple selections are allowed.