Create Search Field Suggestion Box With Multiple Lines per Entry - sapui5

I am trying to create a multiline search field in SAP UI5 similar to the example shown below from the SAP Fiori Guidelines.
The basic implementation is this with the item and then a description section in italic.
Further down the page, it seems like to make a 'form' as an item in the complete:
Has anyone successfully done this type of 'form' implementation in an SAP UI5?

Your understanding of 'form' as an aggregation of sap.m.SearchField is incorrect. In the reference itself they are clearly describing about refresh button.
Which you can avail by below property
If you are looking for lookalike control then I suggest you to check Input with key and value tabular suggestions example. It has an UI which satisfy your 'form' like structure.

Related

How to implement custom field to show a modal to add a new CRUD?

I need to make "add new" button on select2_multiple field. Which show a modal to add new item.
I have no idea how to implement this type of custom field.
You should check out https://github.com/webfactor/laravel-backpack-instant-fields - they've already created a field type with this functionality, but I believe it's only for 1-n relations.
Creating a new field type isn't difficult at all, it's just adding one blade file in your resources/views/backpack/crud/fields folder. Documentation here. That file will include all the PHP and JS logic you want. However, creating this particular field type will be more complicated, it will involve a lot of Javascript, and most likely an AJAX request to a route and controller method you create.
In Backpack v4 we plan for this to be an official feature. We're still 1-2 months away from v4, though.

Typo3 Powermail: Export of multiple forms not working - How to add Translations

I have a contact form in different languages. All Forms (1 per language) store their data on a certain page. When I click "Mails" and that storage page, I see a list of all messages from all forms - so far so good.
But when I click CSV Export, I only get the data from one language. After a while of debugging I think I have found the reason - this is because the export service collects the fields from the first message and based on that field list it builds all the other rows. As other messages are from different forms (i.e. languages) there are no corresponding fields for those messages and they are not exported.
Have a look at https://github.com/Intera/typo3-extension-powermail/blob/master/Classes/Domain/Service/ExportService.php --> see function getDefaultFieldListFromFirstMail
Now I am writing to SO instead of Github Bugs, because I still think that there is something wrong with my setup, as Powermail is quite widely used and such an error would have been reported earlier.
The problem was the way I set up the translations of the Powermail forms. I have created a different form for each language, which is not the correct way to do it.
I have found a video which describes the correct process: https://vimeo.com/268654409 .
In the case that the video gets removed, here are some screenshots:
1.) navigate to "LIST" on the the page of your form, select your form and click "Create new Record".
2.) Add a new record "Alternative Page Language"
3.) Select the desired language for the new record and name it properly:
4.) Now you should have a new localization in your powermail fields:
Click on that localization entry to edit / translate it.

Mouse-over objects not possible in HTML export of Enterprise Architect

I need help with mouse over content of the HTML export from Enterprise Architect. I would like the HTML output from Enterprise Architect to also contain the 'Notes' of the element when I mouse over them. Currently this is not possible with the standard HTML export from Enterprise Architect.
Actually there is no way to see the contents and tags of the element if it has a composite child structure except for you have to find it in the side window like project browser and then click the individual object from there.
Please let me know if there are some ways I can achieve these.
Cheers!
Neha
I don't think the mouseover option is possible since the actual clickable areas are not related to the elements, they just redirect to the elements page.
But when clicking on an element on the HTML model, it should show you its details :notes, attributes, diagram, etc...(If it shows you the diagram, rest of the content should be below it)

web2py autocomplete widget not working

need a hint on web2py built-in autocomplete widget.
in controller:
db.otc_products.counterparty.widget = SQLFORM.widgets.autocomplete(request, db.counterparty.Long_Name, limitby=(0,10), min_length=2)
in model:
db.define_table('otc_products',
Field('counterparty','reference counterparty',
widget = SQLFORM.widgets.autocomplete(request, db.counterparty.Long_Name, id_field=db.counterparty.id,
limitby=(0,20), min_length=2 )),
...
db.define_table('counterparty',
Field('Long_Name'),
...
The resulted sqlform.grid returns a grid which features the counterparty field to be a regular table field instead of a widget, let alone autocompelete widget.
What is the configuration that needs to modify here to get a autocomplete widget shown and work.
thanks in advance!
check link above for a snapshot of tge grid.
The .widget attribute of a Field object produces the HTML form input element used for the field in forms created via SQLFORM. The grid is for displaying values stored in the database, not for editing those values. The display of a given field in the grid is therefore determined by the field's .represent attribute, not by the .widget attribute.
As you have mentioned in your comment above, you can use a form widget within the .represent attribute, and the grid will then display the widget. However, in both your model and controller code above, you have set the .widget attribute of the counterparty field rather than the .represent attribute.
In any case, there is really no point to using form widgets within the grid itself, because the grid provides no mechanism for making inline updates to records via those widgets (i.e., you will be able to select/input values in each widget, but you will have no way to submit the changes so they will be persisted in the database).
In theory, you could build your own inline editing functionality on top of the grid (via Javascript that reads the values from the inputs and posts the updated records to the server via Ajax). But this functionality is not built into the grid.
The grid does provide a way to edit individual records. If you configure the grid to be editable, each row will include an "Edit" button, and when you click it, you will be taken to an edit form on a separate page. That edit form will make use of any widgets you have defined, including the autocomplete widget you have configured in your code.
For web2py and stackoverflow communities and the sake of completeness, developer who is leveraging this framework and streamlining the web development:
the sqlform.grid can be secondarily developed to extend its capacity in some ways, just need to be very familiar with the underlying .py files which is open source and modifiable to meet your needs.
folks have posted solutions like below, with this one can in-line edit a gird, which provides convenient editing as well as comparing between sql records, the sql tables can be managed thru the grid with greater transparencies without jumping back and forth for an edit:
http://www.web2pyslices.com/slice/show/1928/basic-inline-editing-in-sqlformgrid-no-plugin-no-javascript
p.s.: I am utilizing web2py for faster development for a financial firm, so there is really no time for me to extend this framework to unclock additional functionalities, like the one above. when I do have some free time, if there is actual development need, I will extend web2py for particular requirement, and post the code on the web.

Umbraco 7: custom dropdown dynamically populated from Items in a specific node

I have a "Language" document type, and under my site's Content I have a folder called "Languages" which contains all the languages we support.
I created a custom Data Type called "Languages Dropdown", and I want this dropdown to be populated from the instances of "Language" present at a specific path.
This is my default Sitecore thinking in action. Is such a thing even possible in Umbraco?
Certainly - first of all, take a look at nuPickers and see if that can do what you want - 99% of the time this sort of thing can be handled really easily with that package:
https://our.umbraco.org/projects/backoffice-extensions/nupickers
Documentation can be found here:
https://github.com/uComponents/nuPickers/wiki