CRM 2015 display attachment sub grid in custom entity form - attachment

I would like to create a sub grid in one custom entity form using attachment entity. But when I tried to build relationship between attachment and custom entity, I could not find new relationship button in Attachment customization.
I know I can use annotation to display the attachment, but I think attachment grid would be perfect.
Could anyone please give me some ideas or suggestion?
Thank you.

I'm pretty certain that this isn't possible. You will either have to do something custom or just use annotations.

Related

What is form collection in ZF2

What is ZF2 form collection ? When should we use form collection ? I think ZF2 document has no clear definition about Collection.
Can any one explain with the example?
Thanks for reading.
A Form Collection is used whenever your form is supposed to display multiple instances of a certain object.
For example: You have one Album-Object and you have a Track-Object. One Album is supposed to have multiple Tracks. Instead of adding just one Track per form you can create a collection to allow for multiple tracks to be added at once.

Create new field in SugarCRM

I'm trying to add new field in SugarFields and i have many problems. I have to create a new field which is combination of relate field and multienum, when user clicks to select one/many item(s) the list will be loaded to dropdown list (multiselect). I have copied and modified relate field but i can't see how to get data from pop-up window
Have anyone tried this before? Please give me a clue. I'm using SugarCE-6.5.13
Thank you.
I can't upload image so this is a link from mediafire :(
http://www.mediafire.com/view/523c1kwewld18hn#
You do not need to create a custom field. What you actually want to do is add some custom JavaScript that will make an ajax call to the server to obtain the values for the multi-select from the relate.
There are two different types of data for a relate field. Data when you type ahead and data that is returned from a popup.
For the popup: you will need to override the function set_return(popup_reply_data)
I can't remember off the top of my head, how to handle the type ahead.

Partial Page Postback'ish MVC 4

First, I apologize if this is a dumb question, but I'm new to MVC and am trying to get up to speed as quickly as possible. I have spent hours searching for answers and even went and bought a book on MVC 4, but it still didn't answer my question.
I have a form I'd like a user to fill out to add a new product to the catalog. They choose the category, enter the name, a description, etc.. On the same page I'd like them to be able to add sizes or product options such as Small, Medium, Large, etc.. The problem is I'm not sure how to go about this.
I need to temporarily store the size options for example in some sort of collection until the user actually 'saves' the product, then I need to be able to read the collection. What I'm trying to avoid is to have the user add the basic product info, then save it, then select it, then choose to add options to it. I'm trying to just do it all on one form. Any help would be greatly appreciated!
There is nothing preventing you creating a view model with its own collections for the detail items and have those mapped to some sort of javascript control for selecting multiple items such as one that writes to an mvc hidden form control.
The controller handling the postback will simply create the master model from the postback data (the updated view model) and then create the child records. The whole thing could be achieved with ajax calling a controller action that returns a partial view of the updated ui.
Similar to this but have the list as a property of the master model
http://www.stevefenton.co.uk/Content/Blog/Date/201002/Blog/How-To-Handle-Multiple-Select-Lists-In-ASP-NET-MVC/
A little more advanced on how to manage your own bindings http://www.dotnetcurry.com/ShowArticle.aspx?ID=584
Sounds like u need to roll your sleeves up and get a control written in javascript that allows child items to be added client side whist serializing e.g. Into json when they save and saving it to an mvc hidden control ready for postback. Use json.net to hydrate these values into your pocos. http://erraticdev.blogspot.co.uk/2010/12/sending-complex-json-objects-to-aspnet.html

symfony - custom multiple checkbox widget - help

I'm trying to create a custom multiple choice checkbox widget, that displays all items of a model.
My model is named 'Tag', which is a list of tags in my DB table.
I have copied the sfWidgetFormSelectCheckbox code and pasted it into my new widget class, but I'm unsure what to do next
Could someone help me?
Thanks
If your issue is working with tags. Best to look at sfDoctrineActAsTaggable. It should have all the behaviour you require, hence you should be able to dissect it to achieve what you are after.
I managed to get this working using some custom code, i.e. getters and setters and overriding the doUpdateObject() and updateDefaultsFromObject methods in my form class

What syntax to query a custom work item field

I am using the Event Subscription Tool, which sits on top of the bissubscribe.exe tool to create some custom alerts. I need to query against some custom work item fields, but I'm not sure how to reference them in the code.
Here is how you reference a system field (this works):
CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue" =
'Daniel, Jim'
Here is how I'm attempting to reference a custom field (this does not work):
"CoreFields/StringFields/Field[ReferenceName='ProductBacklogItem.CustomField.1']/NewValue"
= '400'
Am I referencing the custom field wrong? I can find no documentation how to reference it. I am wondering if the custom fields live under "CoreFields..." -- doesn't seem like they would, but I don't know where they would be.
Thanks for any help
I found the solution. You cannot access the custom fields through "CoreFields" in an event. You may only access a custom field that has changed, and you must access it like this:
"ChangedFields/StringFields/Field[ReferenceName='ProductBacklogItem.CustomField.1']/NewValue"
= '400'

Resources