SharePoint custom field render differently in "View Properties" mode "Edit Properties" and Norman display in page - sharepoint

I have one custom field. Here are different renderings of that page. In EditForm.aspx [through edit properties]
In DispForm.aspx [through edit properties]
I have overrided Display Mode and Edit Mode.
But when I put a field in a page layout the page does not show any result. It just shows Mode[Display] text.

You need to create a custom field control that uses your custom field type, to render content in a publishing page.
How to: Create a Custom Field Control -
How to: Create a Custom Field Type and Field Control

Related

Why can't Acumatica find a view?

I created a DAC extension mapped to an extension table off of SOShipment. I have two custom fields in the extension table that I'd like to add to the Sales Orders entry form, specifically the grid in the Shipments tab. When I go to the layout editor for this form and select the Grid: ShipmentList under the Shipments tab, there are no fields in the Add Data Fields tab on the right. Also, I see a yellow circle with this error in several places:
The "ShipmentList" view is not found. Try to publish the customization project.
I published the customization project, but the error persists. To my knowledge, we haven't done any customization that would've touched the ShipmentList view. What is the issue here and how do I resolve it?
Since you are trying to add those Custom fields to the Grid: ShipmentList(which primary DAC is SOOrderShipment), make sure you add the Custom Fields to the Correct DAC extension, the correct DAC extension should be for SOOrderShipment.
(You have to rename the DataView because in base code, this Dataview is named shipmentList. However, the editor Tool when generating Customization Script for that screen is assigning ShipmentList(Capital S) to Datamember instead of correct Dataview name. )
So, then Go to Section Screen, Select SO301000 screen, select the Grid(ShipmentList) under the Shipments Tab, select Action->Edit ASPX, then locate on DataMember="ShipmentList" (with Capital S) and replace it for DataMember="shipmentList" (lowercase s). Then click on "Generate Customization Script" and publish your Customization.
After publishing, go to SO30100 Screen, select correct Grid and you will be able to see new Custom Fields and the warning message gone.

Add list of item in editor view page of orchard cms driver class

I try to create custom content part with following specification.
I need to add list of items in database with same editor template view page of driver.
I want to include one form with required fields with an add button, by using this add button I want to add more number of rows with given field values in database.
I have checked Orchard documentation in this link, they provide sample with single item add in editor template page. In my case I need to add multiple items in editor page.
In display view page of driver, I want to retrieve collection of data from database and rendered in display view page.
Please share some details for this.
Thanks,

SharePoint 2013 people picker for publishing contact

I've created my custom page layout with custom content type (but derived from the content type page) on SharePoint 2013 in a publishing website. I have several field controls placed on the page layout (Title, some custom taxonomy fields, etc.) so I can change them directly in edit mode of the page. That works perfectly fine.
But there is the field "PublishingContact" (standard people field which comes with the content type of the article page) which can be set on the editform.aspx with the autocompletion control. I lost in placing this control on the page layout like i did with the others.
I've tried the classic "UserField" control, but this has no autocompletion. I've tried the ClientPeoplePicker but this control has no Property to map it to the corresponding field.
So has anyone an idea how to place the control of the editform on my page layout so I have the same functionality as on the editform, but on my page layout?
Thanks in advance!

How to set Custom-Field type column on SharePoint Application Page?

I have page layout for my sharepoint news.
I have control where administrator can set few checkboxes.
How can i set that selected choices to custom field in my news item?
I got events reciever but i dont have access to my page layout controls there.
I need some event like "SaveButtonClick" or something similar...
Add new hidden field to content type.
On page postback save your data from custom controls to hidden fields.
In event reciever i can use now data from my hidden fields.

Can I use one form for add and edit List Items?

I created custom edit form and custom add form for my List. Both forms have the same FormFields and they differ only by ControlMode tag. In add form ControlMode="New" and in edit form: ControlMoe="Edit".
When I try use edit form as NewForm, in all input box I see text "... field value" insted of empty box. And when I try use add form as EditForm, all input boxes are empty insted of field value.
Can I somehow use one aspx file as newForm and EditForm at the same time to not duplicate aspx files?
For sharepoint webpart page(site page): No you can not have same form for both
For Sharepoint application page: yes you can. you have almost complete control over you application page.
For more info about difference in site page and application page:
http://akifkamalsyed.wordpress.com/2010/06/12/sharepoint-application-pages-vs-site-pages/
http://jwalin.wordpress.com/2008/05/26/difference-between-site-pages-and-application-pages/

Resources