In Umbraco 7, is there anyway to create a field on a Member, where an administrator can assign multiple Members to another Member of a different Member Type?
For example, we have 2 Member, "Dealers" and "Distributors". We would like to have a field to allow multiple "Distributors" to be associated with a "Dealer".
I know Umbraco has a "Member Picker" data type, but that looks like you can only assign a single Member. I'm guessing I might have to create a custom data type, if it's even possible with Umbraco.
Any guidance would be appreciated.
You shouldn't have to create a custom datatype, you could just create a new Multinode Treepicker data type and switch the Node type from "Content" to "Members" using the drop down. This will allow the user to select multiple members. You can also limit the picker to only allow members of a certain type by entering a list of allowed Member type aliases.
Related
I'm new to Netsuite Suitescript.
I have created a custom field which stores the sales order on the purchase Order. I am trying to make the field dynamic so when user clicks on it, it will take you to the Sales order
There is a standard NetSuite field at the Purchase Order level named "Created From". It is repopulated with the Sales Order # if a Purchase Order is created from a Sales Order. If this field is not sufficient, ensure the field you created is type = List/Record and stores a value. If you cannot store a value, please share more details on the custom field you created (type, defaulting, sourcing, filtering, etc.).
080421 addition:
I see. I can think of 3 ways to address this. (1) update the mechanism that creates POs, if it's a script instead of record.create use record.transform. This will populate the native NS field going forward. (2) create a custom transaction body field that will list the Sales Order Transaction record. Then you will have to set this value manually, or via script. or (3) update existing field to house the internal id of the SO, and create a custom transaction body field that is a hyperlink that has a default value as: 'https://XXXX.app.netsuite.com/app/accounting/transactions/salesord.nl?&id='||{fieldIdContainingSOInternalId}
I have a custom object Projet__c, child of Account, that I need to make a query on e.g. SELECT Id FROM Projet__c LIMIT 10. This works.
I want to retrieve the Account Name.
If the child was not custom, for example Contact, I could simply run
SELECT Id, Account.Name FROM Contact (this works).
However SELECT Id, Account.Name FROM Projet__c fails with the following error message :
INVALID_FIELD:
SELECT Name, Account.Name
^
ERROR at Row:1:Column:14
Didn't understand relationship 'Account' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Looking in Workbench, I can see that in Account, there is a child relationship projets__r with a custom field called BorrowerBusiness__c which is equal to Account.Id. Running the query on FROM projets__r or similar variants fail.
I could run the query the other way, SELECT Name, (SELECT Id from projets__r) FROM Account, which works but also returns all accounts without a project and is extremely slow as a result. This also precludes doing two queries and merging in e.g. Pandas.
After trying dozens of combinations, what seems to work is SELECT BorrowerBusiness__r.Name FROM Projet__c. I have no idea why but hey...
I am struggling with something I think should be basic but cannot figure out. I have two entities in core data with a one to one and one to many relationship. They are Company which can have multiple Opportunities.I want to load a table view listing the opportunities (sorted by name) with their associated companies. Can this be done by simply accessing the Opportunity entity? If so, how do I access company? The Opportunity class references it as a "Company" type and so I tried to go using dot notation through to company.companyName but it failed on that, and if I change it to simply company (of type Company) it does show .Company: and other reference data but not the simple name field I am looking for. This seems as if it should be simple but...........
This was simple and I was overlooking the ability to load the fetchedresultscontroller with the right type (in my case the Opportunity class) and then use dot notation from there. I was trying to do it with key value access which did not work. Cheers
I am quite new to Umbraco. I want to create a new property in my document type. This property is a list which contains items like dictionary type which has a key and a value. User can select multiple of these. For example
My document type is "Product", The property I want to create is "Related Items". Each related item will have an name & a url.
Can someone please give me an idea how to do this?
Cheers
You can use the default data types of Umbraco for it: http://our.umbraco.org/wiki/reference/default-datatypes (The wiki doesn't seem updated, but an the ultimate picker will get you the result you need, for example) You can do this in the developer section, create a new one from the defaults and add it to your document type afterwards.
You can also build a custom one, wich is becoming more and more easy, but the approach of doing it is now different in the new umbraco 7 version. Which version are you using?
I want to be able to read the names of the exchange accounts.
ABSource objects only have 2 properties from what i could tell.One of them is an integer specifying the type of source(ex: 0 for local addressbook, 1 for exchange addressbook) and the other is a string specifying the name of the source.Unfortunetely the name of the source will not be the name of your exchange account,it will always be called "Contacts".The problem is that if you would save all the sources in an array and when writing a contact to a specific source you would acces it from there it will work...it will add it to the right source,my problem is i want to be able to select which account to add to from a table view and so far have found no way of differentiating the accounts.
Yes, for some Exchange accounts (and other types of accounts) it seems like there is no way to get any other name except "Contacts".
What you should do is:
Create a separate object that holds the ID and name of the source and has a boolean which tracks whether this account has been selected. Hold these objects within the array that is responsible for populating the UITableView. When the user selects a source, modify the boolean and at the end, when you want to know what the user selected, go through the array and select only the IDs from the objects that have been selected.