SharePointWebControls:BooleanField - text inside checkbox - sharepoint

I'm trying to brand a sharepoint site, and in edit mode I got several checkboxes. In some of the checkboxes I want to display text, how?
ex:
<SharePointWebControls:BooleanField ID="Comments" runat="server" FieldName="Comments" />
Text I want to insert into the checkbox "this is a comment"
I've tried
<SharePointWebControls:BooleanField ID="Comments" runat="server" FieldName="Comments" />this is a comment</SharePointWebControls:BooleanField>

You might consider creating a content type for your page layout. This content type can have a field named "Comments" and with a custom display name.

Related

How to get editing text box to expand to fit size of string field

I've noticed that in the Employee Time Cards screen (EP305000) in the details tab, there is a field called 'Summary' (In the DAC it's 'Subject') - and when you double click to edit the field, the edit area expands to show the entire text to be edited.
I have a custom screen with a grid, and this grid has text fields which I would like to have the same property as the Employee Time Card 'Subject' field (as described above), namely that when you enter the field to edit, it expands to show the entire text.
I've looked at the source DAC for the grid in EP305000, and I don't see anything that jumps out at me as an attribute on the 'Subject' field for that sort of thing.
Any help would be appreciated.
Added a RowTemplate to the Grid area for the two fields I wanted to make expanded, as follows:
<RowTemplate>
<px:PXTextEdit ID="PXTextEdit1" runat="server" DataField="TodoDescription"/>
<px:PXTextEdit ID="PXTextEdit2" runat="server" DataField="Comments"/>
</RowTemplate>
This did the trick. Thanks to HB_ACUMATICA for the answer.

Additional fields searchable in Acumatica report parameter selector (similar to FastFilterFields on page selector)

We have a custom table and use a selector on the key field of this table on various pages. In the selector we need the ability to also search on other fields so we set the page entry for PXSelector to include FastFilterFields as shown in this example:
<px:PXSelector ID="edMyCustomField" runat="server" AutoRefresh="True"
DataField="MyCustomField" DataSourceID="ds" CommitChanges="True">
<GridProperties FastFilterFields="InventoryID,InventoryItem__Descr">
<Layout ColumnsMenu="False" />
</GridProperties>
</px:PXSelector>
This works great on our pages. In the example above, entries into the selector search box will return rows with matching values from the MyCustomField, Inventory ID, InventoryItem.Descr fields.
Now the issue/question…
We want the same search/FastFilterFields functionality for our reports on our report parameter selectors. Currently the selector only allows the search on the field tied to the selector (one searchable field).
How do we enable our report selectors to use additional searchable fields the same as our custom pages?
From what I have found it is not possible for searching beyond the standard 2 fields in a selector used on a report. By default the only searchable fields are the field being selected and the description field defined as the description field in the select attribute.

Create dropdown list jsf

Currently i'm stuck in create two dropdown list in jsf by click a "Add" button.
Initial i have a form with two dropdownlist, a "Add" button and a "submit" button.
The first dropdownlist is list country. The second dropdownlist is list city.
When user choose a country then the second dropdownlist will add dynamic city of this country(i done this using ajax f:ajax).
how can i add two other dropdownlist(list country and list city also) when add button clicked?(it mean user can add a lot of pair dropdownlist using add button)
how about structure of bean to manage all pair dropdownlist when i click submit button?
Please give me some example code to do it.
Thanks
Have you tried using c:forEach? Similar to the following:
<c:forEach var="i" begin="1" end="#{bean.numberOfAddsCLicked}" step="1">
<!-- Your elements to repeat here. Probably bind their values to bean.country[i] respective bean.city[i] with country and city being arrays of bean.numberOfAddsCLicked -->
</c:forEach>

Excel Ribbon XML how to do a control like the Excel "Pivot Table" control

I would like to create a Control like the Pivot-Table in an Add-In XML ribbon.
It's like a clickable button at the top and a dropdown Label opening a menu.
Using the VSTO ribbon designer I am not able to reproduce it.
In fact what I need is the XML for this control.
Any idea ?
You're seeing a splitButton control, which needs to have exactly two children:
a button or toggleButton, and
a menu.
In this case the splitButton has an image set (the pivot table picture) and a child button (with the label 'PivotTable'). The menu then has two children, the two buttons below called PivotTable and PivotChart.
An xml fragment might look like this:
<splitButton id='split' size='large'>
<button id='splitButton' label='SplitButton' image='M' />
<menu id='splitMenu' >
<button id='splitMenuButton1' label='SplitMenuButton1' />
<button id='splitMenuButton2' label='SplitMenuButton2' />
</menu>
</splitButton>
giving me this in Excel:

Add a checkbox to each row of a ListViewWebpart

I'm working on a WSS 3 site that has a ListViewWebpart displaying various columns.
I need to add a checkbox to each row and a button to the header that will perform a server side action for the selected rows.
Do I need to make my own custom webpart or can the ListViewWebpart support checkboxes?
Adding checkboxes to each row
I've found a post Checkbox in ListViewWebpart which suggests
...to add a checkbox, to select multiple
listitem, in the custom list, declare
a xml string as follows.
<Field Type="Computed" ReadOnly="TRUE" Name="ListItemSelection" DisplayName="Select" Sortable="FALSE" Filterable="FALSE" EnableLookup="FALSE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ListItemSelection">
<FieldRefs>
<FieldRef Name="ID" />
</FieldRefs>
<DisplayPattern>
<HTML><![CDATA[<input type="checkbox" ]]></HTML>
<HTML><![CDATA[LItemId="]]></HTML>
<Column Name="ID" HTMLEncode="TRUE" />
<HTML><![CDATA["/> ]]></HTML>
</DisplayPattern>
</Field>
and call the
list.Fields.AddFieldAsXml(“xml
string”);. Include this as a first
column in your custom list’s view.
I'm assuming the latter part requires a SPList. E.g.
SPList list = SPContext.Current.Web.Lists["MyList"];
list.Fields.AddFieldAsXml(stringWithXmlFieldDefinition);
Adding a button to the header row
One option for the header button is a CustomAction. This should create a button in the toolbar.
Here is a post to create a custom web part, then you can add a check box to your custom web part using the post you have found (Checkbox in ListViewWebpart).
Be aware that,list.Fields.AddFieldAsXml(stringWithXmlFieldDefinition); can end up adding many duplicated check boxes to you sharepoint. The duplicated can be deleted from database and are located at AllLists table, tp_Fields column.
To find the right fields, you can search by the list guid.
declare #xmlString as xml
Select #xmlString = tp_Fields
From [WSS_Content].[dbo].[AllLists]
Where tp_id ='xxxx'
Select #xmlString
then, update the fields
declare #string as varchar(max)
set #string ='new value without duplicated checkbox'
UPDATE [WSS Content] . [dbo] . [AlILists)
SET [tp_Fields] = #string
WHERE tp_ID = 'xxx'
You can simply add a button by
ToolBarButton newbtn = (ToolBarButton)Page.LoadControl("~/_CONTROLTEMPLATES/ToolBarButton.ascx");
but possibly you need create another toolbar to hold the button, you can even create your own toolbar. You just need to put it in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\YourCutomToolBar.ascx

Resources