How to change dropdown list itens from a form created by model with integration - google-cloud-sql

Iḿ trying to change the dropdown list itens in a Form created by Model with Realation on AppMaker.
I tryed to change in Property Editor of the Dropdown list in value and in option but the selection using datasource isnt avaliable to confirm (with Ok).
The field of this relation is the dropdown list where the user will select. The itens list of this dropdown list is the id from the relationed Model, and I want to change to another field like name.

I would suggest leaving the options binding at
#datasources.YourDatasource.items
and then setting the names property to
#datasources.YourDatasource.items..name
In this case the .. will be filled in by your binding 'wizard' when choosing 'Projections', so in your names binding property settings you would choose datasources - YourDatasource - items - projections - then select the field name.

Related

TYPO3: populate values in dropdown based on values in another dropdown

In my database I have a table named Category. Examples of a Category could be 'Mathematics' or 'Chemistry'.
My database also contains a second table named SubCategory which contains child elements associated with values in the Category table. Examples of values contained in SubCategory could be 'Fractions' or 'Logarithms' (associated with 'Mathematics' from Category) or 'Organic Chemistry', 'Analytical Chemistry' (associated with 'Chemistry' from Category).
I have a page created in Fluid, where I want a dropdown containing elements from my Category table. The page should contain a second dropdown, which will be populated by values based on the choice made in the first dropdown. So if the user chooses 'Mathematics' in the first dropdown, the second dropdown will contain 'Fractions', 'Logarithms' etc.. If the user chooses another option, then the values in the second dropdown will change accordingly.
This can be done in JavaScript/jQuery, but I was wondering if there was a solution available using Fluid, TypoScript or any other TYPO3 related technology.

Sails js - ordering form list

How would one create a "list" on an order form page that items could be added to when they are added to an order.
Example: I have a dropdown box with a list of items I pick an item and add it to an order form when I just have to set the qty after it is added.

Symfony2 - render an array collection within an entity as radio not as (dropdown) chioce field

I created a form with an collection of forms - the user shall be able to edit many items within one screen.
Each entity in the collection of forms consists for example of a text field and a choice field. The choice field contains some text options (of course).
I know that there is an option like here [ Default values for symfony2 choice radio box ] to define the possible values within the form type by giving an array.
But I do not want to iterate over my array collection within the form builder when I can avoid that. Because the collection is not just an array of strings but it is a collection of an entity (with a __toString() function so that I can get a textual representation for each of it).
Is there a way to render a radio field instead of the default dropdown choice field within the twig teamplate? Or by giving a special option to the form builder (without a loop)?
If you need to display a entity field using radios instead of select, you just have to set the expanded attribute to true:
$builder->add('post', 'entity', ['expanded' => true]);
If you also add the multiple attribute, you have a set of checkboxes instead.
Reference

In SharePoint How to create a form that changes based on a drop down selection

I need to create a dynamic form/workflow in SharePoint. What I am trying to do is create a form that has a drop-down selector with 2 options Projects and Proposals. Depending on which of those two the submitter chooses the form will change which fields are displayed in the form below them.
The goal is the have the form populate 1 list and just populate different fields depending on the form type chosen.
Is this easily doable?
Our SharePoint environment is being provided by Microsoft's Office365 solution.
Did you try Content Types ? You'll not get drop-down (however I've seen drop-down for document libraries with content types), but you can achieve your target: when creating new item you can select which type of item to create (Project or Proposal) and when you'll get fields according to that content type. All data will be stored in the same table.

How do I gain Control of a row in Tabular Layout in Oracle

This might be simple but I am new to Oracle. I am using Oracle 10g and have a form that lists our information from a linked table in a tabular Layout. The last column of data is a "list Item" item type that has the Element list of Enabled (T) and Disabled (F).
What I need is when a user changes this dropdown, to disabled, I want ONLY that row to have some of the columns be disabled and not the entire column.
This is also assuming on load of the form, it will disable and enable rows of data depending on what values are being pulled from the EnabledDisabled column in the database.
Thanks for the help!
Option 1: use the ENABLED item property.
Unfortunately Oracle Forms does not allow changing the ENABLED property of an item at the item instance level.
What you can do, however, is enable or disable the whole item when the user enters a record - use the WHEN-NEW-RECORD-INSTANCE trigger - depending on the value of the current record's value for the list item, the trigger would set the ENABLED property to PROPERTY_TRUE or PROPERTY_FALSE.
Of course, your list item would also have the same code in its WHEN-LIST-CHANGED trigger.
The downside to this approach is that the whole column will "look" disabled to the user, and they will not be able to select a different record using those disabled items.
Option 2: use the INSERT_ALLOWED and UPDATE_ALLOWED properties.
You can set these properties at the item instance level using SET_ITEM_INSTANCE_PROPERTY. You would set them in the block's POST-QUERY trigger, as well as in the list item's WHEN-LIST-CHANGED trigger.
This would not, however, change how the items look on the screen. To solve this, you could also set a visual attribute at the item instance level (e.g. change the items to use a dark gray background or something).
More comments.