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.
Related
I'm a newbie to Delphi and coding itself and have an issue which I can't solve.
I have to create a Treelist based on values from a Database which I did in the design field, here is an example on how it looks:
. Now it needs to be able to insert a new row after giving it a description (which is labeled as 'bez') while running.
The most obvious way to do that in my mind is to right click on a parent field and be able to add a new child field, how can I achieve that?
Also at the end of a parent tree I need it to be able to open a script/file, is that possible too?
I am having one document type which contains a dropdown list, I need to add a couple of things in it:
I need to display the Database table names in drop-down dynamically.
On the change of dropdown option, i need to display the selected table columns names in another drop-down.
Are above things possible by using only existing data types or it will require creating a custom template using razor syntaxes (if it is so then how the template will display directly in the back office content node?)
Can you please provide your views and any links for code/tutorials?
screen shot of content form
If this is for the back office, you will need to do it in HTML and Angular, with an API controller to handle the DB lookup stuff.
As far as I'm aware, there's nothing built in to do dropdowns that depend on each other, so you'd have to create a new DataType to do it.
The process is to long to detail here, but here are some useful links on creating custom DocTypes in Umbraco 7.
https://our.umbraco.org/documentation/tutorials/Creating-a-Property-Editor/
http://velstand.info/tips/umbraco/to-create-a-datatype-by-using-external-data-sources/
https://24days.in/umbraco-cms/2016/custom-property-editor-tutorial/
I want to modify an existing custom data type in Umbraco. I tried to look for an option but somehow I can't see the Edit option in context. Does anyone have an idea about this ?
Your help is much appreciated.
Thanks!!!!
To create your own Data Type click right on the Data Types folder in the Developer section of the Umbraco Admin page select create and type in the name you want to call it.
A panel will then be displayed where you can choose which data type you want in the Property editor.
When you press the save button the settings relevant to the data type you have chosen will be displayed. They will also always then show up when you select that data type in the data types tree.
These are the only data type settings you can change in the Umbraco Admin section I know of.
I have a combobox and that present all the values (1 to many) of my object.
I have implemnted a text field with ajax that retrieves values from the DB using ajax.
Now, want to a add a button that inserts the data from the textfield to the combobox.
I than would like that it would be saved only when user choose to.
I am having troubles implementing the add button that adds the data only on the client side and waits untill the user clicks on save.
Any suggestions?
Rails cast maybe ?
Thanks
http://railscasts.com/episodes/102-auto-complete-association
The railscast above implements what you want with autocomplete feature, watch it fully, you will be good to go, I hope.
Thanks.
I have two Listboxes (select_tag) containing values and I would to create a button that transfer a value from one to the other.
I would like the user to be able to click on one value or more and move them to the other list.
Only then a submit button will send it to the server.
any idea how should I implement it ?
What component/action should I use ?
any design tip or reference that will help me google further will be welcome.
check this website
http://elegantcode.com/2009/07/01/jquery-playing-with-select-dropdownlistcombobox/
basically using jQuery it's the simplest solution.
get element by it's ID or css
get selected value by selector
get other element
add value to the new list by appending html code to existing