How to solve Error comes in screen of ofbiz - tags

This is my code to Find records and show in list
this give me error at tag .
how we can used screen with mandetory tag
how can i solve this problem?
<screen name="searchTransactionScreen">
<section>
<actions>
<set field="headerItem" value="FindTransaction"/><!-- this highlights the selected menu-item with name "main"-->
<set field="titleProperty" value="PageTitleOfTransaction"/>
<set field="ofbizDemoCtx" from-field="parameters"/>
</actions>
<widgets>
<decorator-screen name="TerpCommonDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
my search option section where i am includeing the menu and screeen
<decorator-section name="search-options">
<include-menu location="component://terp/widget/TerpMenus.xml" name="AddDataMenu"/>
<include-form name="FindTransaction" location="component://terp/widget/TerpScreens.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListTransactions" location="component://terp/widget/TerpScreens.xml"/>
</decorator-section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
please give me answer fast

Related

How to Add additional columns to links page to ExternalLink types

How to add columns to ExternalLink on the "Links" page on Azure DevOps Workitem ?
Answered : Not Possible see answer below
Pull Request is not like Code Review Request, it's not a work item
type, we cannot see it from the exported process template. So, I don't
think we can customize the columns like the common work item types. –
Andy Li-MSFT
after going through the following links
link1
link2
and trying the workaround discussed here
I have failed to add more columns to links of the type externallink
i have added the following code as described:
<Page Label="Links" LayoutMode="FirstColumnWide">
<Section>
<Group Label="links">
<Control Type="LinksControl" Name="links">
<LinksControlOptions>
<LinkFilters>
<ExternalLinkFilter Type="Build" />
<ExternalLinkFilter Type="Integrated in build" />
<ExternalLinkFilter Type="Pull Request" />
<ExternalLinkFilter Type="Branch" />
<ExternalLinkFilter Type="Fixed in Commit" />
<ExternalLinkFilter Type="Fixed in Changeset" />
<ExternalLinkFilter Type="Source Code File" />
<ExternalLinkFilter Type="Found in build" />
<ExternalLinkFilter Type="GitHub Pull Request" />
<ExternalLinkFilter Type="GitHub Commit" />
</LinkFilters>
<Columns>
<Column Name="System.State" />
<Column Name="System.ChangedDate" />
<Column Name="System.PullRequest.IsFork" />
</Columns>
</LinksControlOptions>
</Control>
</Group>
</Section>
</Page>
But the results still show only the original columns.
The problem is that the field/column you added (<Column Name="System.PullRequest.IsFork" />) is not a valid work item filed/column. The workaround is only available for work item types due to the columns depend on work item fields.
You need to add a valid work item field/column here. We can get all the available work item fields by calling the Get Work Item REST API with parameter $expand=Fields added in the URL from a specific work item.
GET https://{instance}/{collection}/{project}/_apis/wit/workitems/{id}?$expand=Fields&api-version=4.1
For example, the following screenshots shows all the available fields for my Task work item. (It depends on how you defined the fields, if you defined a custom field, you can also see it from the response body.):
After that, we can add the columns (System.CreatedBy and Microsoft.VSTS.Common.Priority for example in this sample)
Then check the behavior in a Task work item:
Please note that, Pull Requests is not a work item type. We cannot get valid work item fields by calling the Pull Requests REST API. In this case, I don't think we can customize the columns like the common work item types.

what meaning of self and each in zk framework

My project have some code below as this. The last time people who use this framework have left this company. Please some one explain below code to me. What is the meaning of self and #each.
I don't know below listcell #item.areaNo the prefix item is from self="#{each='item' } or value="#{item }. And I really don't know what self="#{each='item' } means.
<listitem self="#{each='item' }" value="#{item }"
forward="onDoubleClick=onDoSelectItem,onClick=onDoChkDelete">
<listcell>
<fixedmodecheckbox label="${labels.delete}" />
</listcell>
<listcell label="#{item.areaNo}" />
<listcell label="#{item.formattedLocationNo}" />
<listcell label="#{item.storerCode.storerCode}" />
<listcell label="#{item.itemCode.itemCode}" />
<listcell label="#{item.itemCode.itemName }" />
<listcell label="#{item.stratedgyValue_2 }" />
<listcell label="#{item.palletNo }" />
<listcell label="#{item.itemCode.packCode.packCode }" />
<listcell label="#{item.stockCaseQty }" />
<listcell label="#{item.stockPieceQty }" />
<listcell label="#{item.allocationCaseQty }" />
<listcell label="#{item.allocationPieceQty }" />
</listitem>
Your code is using the "old databinding" syntax for rendering collections of objects.
It's still mentioned in the ZK 5 Developer's Reference, page 139 (available from the archive section). Even though deprecated since at least 6 or 7 years it's still part of ZK to support legacy code as in your case.
What it does (and I am also guessing a bit since this appears rarely in old code) is:
each is the current object of the collection, which is given a name item, so that it's accessible in binding expressions inside this repeated component self.
value="#{item}" will then simply call listitem.setValue(item) so that your listitem, remembers the object it's associated with.
I agree the syntax is weird and I assume that's why this has been deprecated and superseded by the new binding annotation syntax since ZK 6 or 6.5 (you can see a similar example at the bottom of this current documentation page).
However upgrading is not a drop-in replacement and requires quite some refactoring of your java code. That's why this kind of code keeps sticking around.

How to correctly configure a fluidcontent accordion element in TYPO3 8LTS

I am updating a project to TYPO3 8LTS and I am using the latest version of flux and fluidcontent. It works most of the time. However I have an issue that I could not solve without digging too deep into flux and core. So maybe sombody here can spot the issue on my part and save me some debugging.
I have a fluidcontent element with expandable objects. It is an accordion where the editor can add as many panels as needed. The configuration looks like this:
<f:section name="Configuration">
<flux:form id="accordion">
<flux:form.option name="group" value="Container" />
<flux:form.option name="icon" value="EXT:my_ext/Resources/Public/Images/ContentIcons/Accordion.jpg" />
<flux:form.section name="panels">
<flux:form.object name="panel">
<flux:field.input name="title" />
<flux:field.checkbox name="active" />
</flux:form.object>
</flux:form.section>
</flux:form>
<flux:grid>
<f:for each="{panels}" as="panel" iteration="iteration">
<flux:grid.row>
<flux:grid.column name="column.{iteration.index}"
label="{f:if(condition: panel.panel.title, then: panel.panel.title, else: 'Panel {iteration.cycle}')}" />
</flux:grid.row>
</f:for>
</flux:grid>
</f:section>
This works like intended. It is possible to add and remove panels. However if I create a new content element and add some panels and then save&close the content element for the first time I get a core error message, telling me
"_1: Attempt to insert record on page '[root-level]' (0) where this
table, tt_content, is not allowed_".
The created content element was stored correctly in the database with all fields but the pi_flexform field where the configuration of the panels is stored. That field is empty. I can now edit the element and create panels and the configuration is saved successfuly.
The error only occurs the first time a new content element is saved.
The issue was identified as core regression in the meantime. A fix will (hopefully) be included in one of the next LTS releases.
https://forge.typo3.org/issues/80825

Pagination is not working and no error messgage

There is no error in the file but the below code is not working after i deploy please check the code once and help me. The table is "Library" and the columns are "title" and "author". code in view.jsp is as shown below
<% List<Library> list = LibraryLocalServiceUtil.getLibraries(-1, -1); %>
<liferay-ui:search-container delta="5" emptyResultsMessage="No Books Available">
<liferay-ui:search-container-results results="<%= ListUtil .subList(list, searchContainer.getStart(),searchContainer.getEnd()) %>" total="<%= list.size() %>" />
<liferay-ui:search-container-row
className="com.liferay.pagi.model.Library"
modelVar="aLibrary">
<liferay-ui:search-container-column-text property="title" />
<liferay-ui:search-container-column-text property="author" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
You will get all book titles and author names are show into the table.
Give a link back to the main page.
« Go Back
The following is working portlet just download and compare with your code..
I guest your list may be size 0 or empty. check it
List<Library> list = LibraryLocalServiceUtil.getLibraries(0,LibraryLocalServiceUtil.getCount());
http://www.liferaysavvy.com/2013/03/liferay-search-container-with-curd.html
https://github.com/liferay/liferay-plugins/tree/6.2.x/portlets/sample-ui-search-container-taglib-portlet

Show label on the top of bar2d by fusioncharts

How can I show label on the top of the line in the bar2d graphic?
For example:
|-------------------------
| This is line!
|================= 70%
|
| This is line 2!
|====== 30%
|-------------------------
Thanks.
Natively, FusionCharts does not support this feature. However, what makes FusionCharts really amazing is the number of workaround or tweaks you can come up with to address an issue (makes my job easier too :)
Please try out the following XML snippet using a Single series Bar 2D chart.
<?xml version="1.0" encoding="UTF-8"?>
<chart caption="Monthly Unit Sales" xAxisName="Month" yAxisName="Units" showValues="1" decimals="0" formatNumberScale="0" chartRightMargin="30">
<set label="" value="0" alpha="0.1" displayValue="
Feb" />
<set label="" value="857" />
<set label="" value="0" alpha="0.1" displayValue="
Apr" />
<set label="" value="494" />
</chart>
What we have done here is used empty and invisible data-plot above the data-plots we want to showcase with the Label on top. Thereby, using the displayValue attribute in the invisible data-plot, we can recreate the visual effect of the Labels being on-top of the data-plot being displayed.
Note: The character &#10; (new line break) has been used to bring the output of the displayValue attribute, i.e. the apparent Label in this case, closer to the data-plot below.
Alternatively, you may also use the Multi-series Bar 2D chart to re-create the above mentioned effect, using the XML snippet quoted below.
<?xml version="1.0" encoding="UTF-8"?>
<chart palette="2" caption="Business Results: 2005" yaxisname="Revenue (Millions)" hovercapbg="FFFFFF" toolTipBorder="889E6D" divLineColor="999999" divLineAlpha="80" showShadow="0" canvasBgColor="FEFEFE" canvasBaseColor="FEFEFE" canvasBaseAlpha="50" divLineIsDashed="1" divLineDashLen="1" divLineDashGap="2" numberPrefix="$" numberSuffix="M" chartRightMargin="30" useRoundEdges="1" legendBorderAlpha="0">
<categories>
<category label="" />
<category label="" />
<category label="" />
</categories>
<dataset seriesname="Domestic" color="8EAC41">
<set value="0" alpha="0.1" displayValue="Hardware" />
<set value="0" alpha="0.1" displayValue="Software" />
<set value="0" alpha="0.1" displayValue="Service" />
</dataset>
<dataset seriesname="International" color="607142">
<set value="116" />
<set value="237" />
<set value="83" />
</dataset>
</chart>
I hope this helps. :D