I've implemented an application using Moqui Framework.I have form-single like this
<transition name="languagesUptade">
<service-call name="org.moqui.impl.UserServices.update#searchLanguage"
in-map="[locale:locale]"/>
<default-response url="."/></transition>
<form-single name="languageslist" map="languages" transition="languagesUptade">
<field name="locale" columnSize="col-sm-12"><default-field>
<drop-down allow-empty="false"><list-options list="localeStringList" key="${locale}" text="${locale} - ${name}"/></drop-down>
</default-field></field>
<field name="submitButton" columnSize="col-sm-12"><default-field title="Update"><submit/></default-field></field>
</form-single>
I am trying to remove field submit-button and i need get submitted on selecting drop down and it need to call the transition. How can i achieve that ?
Write some JavaScript to do it, and put it in a render-mode.text element. There is an example of this in the QuickSearch screen in HiveMind:
https://github.com/moqui/HiveMind/blob/master/screen/HiveMindRoot/dashboard/QuickSearch.xml
Related
the problem is in the fourth field (and maybe 11):
<field id="4" value="000000010000"/>
it should be:
<field id="4" value="10000"/>
I used IFB_NUMERIC isoFieldPackager for this field. Does correct isofieldpackager exist for my case? Or I need to some other decision...
thanks in advance!
jPOS doesn't perform content manipulation like unpadding. The packager just put what it reads and is the responsibility of the higher-level logic to make the unpadding.
You can use ISOUtil.zeroUnpad(m.getString(4)) method for that.
I am trying to update the test results using REST API for ALM Saas
http://targetserver:targetport/qcbin/rest/domains/ALMDomain/projects/ALMProject/runs - EndPoint
Below are the body(payload):
<Entity Type='run'>
<Fields>
<Field Name='name'><Value>testnamegoeshere</Value></Field>
<Field Name='test-instance'><Value>1</Value></Field>
<Field Name='cycle-id'><Value>cycleidgoeshere</Value></Field>
<Field Name='test-id'><Value>testidgoeshere</Value></Field>
<Field Name='subtype-id'><Value>hp.qc.run.MANUAL</Value></Field>
<Field Name='status'><Value>Failed</Value></Field>
<Field Name='owner'><Value>testownergoeshere</Value></Field>
</Fields>
</Entity>
Getting response is like this.
false
here is my question: I need to know if am passing correct parameter or not and please let me know, is API got changed or anything else??
URL you mentioned is for creating a new run. You have mentioned that you are going to update the test run. For that you need to append /{id} (id of run). Make sure you are making put call and not post for this operation.
Also probably you wont require to give cycle-id, test-id, test-instance details with update because those are now constants. If you are creating new run then it is mandatory.
Hope this helps you to solve.
I am new to alfresco community edition-5.1.x ,I have created workflow activiti using kick-start after deployed alfresco work-flow activti is working successfully. In work-flow form drop-down fields i used is this possible to select multiple value please help me out
You should be able to define drop down fields in your share custom config form declarations:
<config evaluator="task-type" condition="mytaskmodel:mytask">
<forms>
<form>
<field-visibility>
<show id="mytaskmodel:myproperty" />
</field-visibility>
<appearance>
<field id="mytaskmodel:myproperty" />
<control template="/org/alfresco/components/form/controls/selectone.ftl">
<control-param name="options">1|valueone,2|value2</control-param>
</control>
</field>
</appearance>
</form>
</forms>
</config>
Bit of a background:
We have an existing spring webflow that we want to have ajaxified so that the page can be displayed
in a "lightbox" (at a different URL) where the user can interact with the flow in a similar way to the full existing page.
The normal registration form sits at
http://localhost:8080/csso/customer/registration?execution=e1s1.
(csso is the application name)
The webflow in Spring Webflow has an id of /customer/registration.
<flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices">
<flow-location id="customer/registration" path="/WEB-INF/views/customer/registration/registration-flow.xml"/>
</flow-registry>
registration-flow.xml
<view-state id="create" model="customer" view="customer/registration/create">
<on-render>
<evaluate expression="customer.setAcceptTermsAndConditions(false)"/>
</on-render>
<transition on="submit" to="confirm" />
<transition on="cancel" to="cancel" bind="false" />
</view-state>
Now my problem is I need to access this page in two different ways.
Directly. Which works currently.
As an include in a different JSP page
(tabEntry.jsp accessed with controller /tabEntry) in such a way that the flow of the form is not interrupted.
How can I include /customer/registration inside tabEntry in such a way that clicking on submit goes through the same flow?
Problems faced:
Including /customer/registration by jsp:include doesn't work since /customer/registration is not a controller. Also #include doesn't work since a call to /customer/redirection includes a redirect which sets the execution key for webflow
The form action is automatically set to /tabEntry but it should be set to the second state of /customer/registation to continue with the flow.
Happy to accept design changes instead of hammering it technically.
I am using Apache Solr for indexing and searching. I have to give weight to the specific field so that If I make search then search has to perform on that field which is most weighted and then on others.
I am using SolrJ, Java, and GWT for development.
To boost at index time you need to supply a boost statement in your update doc.
<add overwrite="true">
<doc boost="2.0">
<field name="id">1234</field>
<field name="type">type1</type>
</doc>
<doc>
<field name="id">2345</field>
<field name="type" boost="0.5">type2</type>
</doc>
</add>
The above example demonstrates how to boost a complete document (elevation) as well as how to boost a specific field.
For more documentation look here and here
Using the dismax (or edismax) query handler, you can set the qf (Query Fields) parameter to assign boosts to different fields. It uses this format:
field1^boost_val field2^boost_val....etc.
There are other good parameters to help you control your result ranking as well.
http://wiki.apache.org/solr/ExtendedDisMax