I'm using Umbraco Forms in a new websites. This website has Merchello enabled, so I got products in there too. I want to create an enquiry/request form and collect the country of requester (so I shall show a full list of countries), and enable requester to select products they are interested in too.
Thus, the form will have fields like Countries drop down list as well as products to choose from. For countries I have got them all listed in a config file, and created a web api that inherits from UmbracoApiController - when creating the form in the back office I get the method invoked successfully but receive an error when returning the list. Whereas to access products list I shall inherit from MerchelloApiController, which when I do I could never invoke the api controller.
Two questions:
1. How could I show the list of countries (reading from file or service)?
2. How could I access Merchello products list to populate Products' drop down list on Umbraco forms?
Yo should use Prevalue Sources instead a Webservice Datasource. Datasources are to map Umbraco Form fields to external services.
With Prevalue Sources you can get data to populate your dropdowns. You say you have your countries in a fie already so you could use the 'Get values from textfile' type.
To get your Merchello products you could probably use NuPickers. You could create a data type of DotNet type and select your source class that will return a list of your products. Then create a Prevalues source of type 'Umbraco datatype prevalues' that uses this datatype to get the data to populate your dropdown.
I hope all this info will put you in the right track.
Related
Is there a way to populate checkboxes component (or different component which allows multiple choice) with dynamic values (just like you can do for a dynamic dropdown)? Let's say I want do populate checkboxes with countries. Example form: https://demo.orbeon.com/demo/fr/orbeon/builder/edit/73aeafa983d00f305fb381d72e59ce7c69e2b1ea
Yes, you can do this with Actions & Services:
Use an HTTP services if your data comes from a service that returns JSON or XML.
Use an database service if you prefer to write SQL to extract data from a database.
Use an action to define when your service should be called (e.g. on form load), what data you want to pass to the service (if any), and what to do with the result, which, in your case, it to set the choices of a selection control.
And note that Actions & Services are a PE feature.
I have a an MS Access database with nine tables. The main form will be driven by a query linking the two main tables. When I pull up any one record ("family within a house"), I have a lot of variable data to pull into the form (how many family members, names of each, other specific information) to retrieve from the other seven tables. I created a VBA module, linked to this form, which is triggered when a record is loaded. The code aggregates all the family member data into a Collection of "person" elements. All of that works, as evidenced by the "Immediate" window in VBA. The "person" object is defined as a Class Module with all the relevant attributes (firstname, lastname, email, is-parent/is-child, etc).
Where I'm stuck: how do I access the collection within the form, so I can start populating elements? I haven't been able to find any documentation to do this, nor any similar questions asked/answered online. Next step will be creating all the elements dynamically, but right now, being able to create a static element and setting the control source to (at least some component/value within) the collection would be a huge help.
My VBA form module has a method, "Private Sub Form_Current()", which generates the collection when the current record is changed.
Thanks in advance...
Got my answer: "you don't". Set the element values in code, rather than trying to pass the collection the form.
I am building up url for different entity in Dynamics 365 crm. I found this for crm 2011 but I want more elaborate solution than that.
Observed URL:
For Quote Entity: https:**[instance url]**.com/main.aspx?etc=1084&extraqs=&histKey=254156564&id=%7b[**GUID**]%7d&newWindow=true&pagetype=entityrecord&sitemappath=SFA%7cCollateral%7cnav_quotes#765575448
For Order Entity: https:**[instance url]**.com/main.aspx?etc=1088&extraqs=&histKey=653905533&id=%7b[**GUID**]%7d&newWindow=true&pagetype=entityrecord&sitemappath=SFA%7cCollateral%7cnav_orders#817364929
I created other url for other entities and observed the query parameter value of the url as like below:
1. etc is constant for different entity. eg. for quote(1084) and order(1088)
2. extraqs is empty.
3. histKey is variable for an entity. It is appearing in different value for a same entity record.
4. id is the unique identifier of a record (i have no question about this)
5. sitemappath is different for different entity.
Now I want to know about -
1. what is etc and why it remains same for a entity always?
2. what is histKey(why it gives random value every time) and sitemappath?
We are using these in our Dynamics 365 CRM application without issues. Read more
Simple record form using etc (entity type code):
https://myorg.crm.dynamics.com/main.aspx?etc=1&id=%7b[GUID]%7d&pagetype=entityrecord
Same record using etn (entity type name):
https://myorg.crm.dynamics.com/main.aspx?etn=account&id=%7b[GUID]%7d&pagetype=entityrecord
Same record in UCI:
https://myorg.crm.dynamics.com/apps/appname/main.aspx?etc=1&id=%7b[GUID]%7d&pagetype=entityrecord
Particular form using formid:
https://myorg.crm.dynamics.com/main.aspx?etc=1&id=%7b[GUID]%7d&pagetype=entityrecord&extraqs=formid%3d[formGUID]
sitemap can be ignored as the pagetype param will render the top navigation bar & histkey can also be ignored as its for internal platform/browser usage for previous/forward navigation. extraqs is any extra query string param you want to pass that pre-populate the form attribute.
https://myorg.crm.dynamics.com/main.aspx?etc=1&id=%7b[GUID]%7d&pagetype=entityrecord&extraqs=fullname%3DNew%20Contact
Documentation says:
Do not use the etc (entity type code) parameter that contains an integer code for the entity. This integer code varies for custom entities in different organizations
But if you are not creating a custom entity directly in any non-development environment, only the solution is being used to port the customizations across different environment then that should not be an issue.
To open a Particular Record for Account Entity, Where etn is Entity Schema name.
http://myorg.crm.dynamics.com/main.aspx?etn=account&pagetype=entityrecord&id=%7B91330924-802A-4B0D-A900-34FD9D790829%7D
For Example you have a Custom Entity let's call it Account Plan and your entity schema name is new_accountplan, so your url will be something like below
http://myorg.crm.dynamics.com/main.aspx?etn=new_accountplan&pagetype=entityrecord&id=%7B81440924-802A-4B0D-A900-34FD9D790829%7D
Similar way to open a particular Form for user to fill information
https://myorg.crm.dynamics.com/main.aspx?etc=1&id=%7b[GUID]%7d&pagetype=entityrecord&extraqs=formid%3d[formGUID]
You can use Power Pane Chrome addon which is a helper tool , help you to show entities urls
There is a large table with data.
On the site, each user is given access only to a certain set of data from the table (a selection is made according to certain criteria).
But in the URL line, he can change the number to get access to any data from the table.
How can I restrict access to data from the URL string?
For example: there is a table of goods. 1 and 3 are available to the user. URL: shop.com/goods/show/1 or shop.com/goods/show/3
but he can also go and see the goods under the numbers 2 - shop.com/goods/show/2.
How can this be avoided?
I created a domain class, based on it I created a table. The controller was created automatically with the basic methods of index, show, edit, etc. I make a selection using the createCriteria() in the index method
grails v3.3.0
No matter what I try for EntityFilter, I can't seem to get any results. I believe that I must be mis-understanding what the EntityFilter does.
What entities is it filtering if I use it in a <DepositQueryRq>?
Copy/pasting from the documentation:
EntityFilter
An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file.
So an EntityFilter lets you filter deposits by entity. e.g. You can use it to get all deposits for a specific entity.