use external resources, or allow full javascript in form.io custom validation - formio

I have a field need to do validation based on external resources. But form.io doesn't allow me to use javascript fetch method and custom a variable in the custom validation.
There seems to be a data source function in premium plan, but I will host all the javascript locally, so I don't plan to upgrade the plan.

Related

Need to Fetch data from external API (without storing at database) and show data on multiple views

I have few custom modules created using Module Builder. I need to fetch data using external REST API (around 200-300k record per API) and without storing data in suite database I need to display data on custom modules (using UI provided by SuiteCRM only. NO CUSTOM UI). and also I have operations to be perform on data which will again call External API.
So, as per requirement, Data should not be saved at database. How to achieve this in SUITECRM (7.11.8 version)?
I have tried using Process record hook. But things aren't working.

How to configure TYPO3 extension over a backend module?

I'm developing an extension for TYPO3 8.7 that queries an API for some data.
The frontend part works, although the API is called live at the moment.
Now I'd like to build a little backend module in which the integrator can at least manage the API credentials. Maybe also storage PIDs and other settings.
I guess storing data like these is usually done using TypoScript(?), but it would be nice to have a interface for storing settings of all kinds.
I rather guess I could create a database table and access it in the backend and frontend on a low level.
But before I do so I'd like to ensure that there is no other, designated way to do so. Maybe interact with the settings array somehow or whatnot.
I thought that storing configuration data would be a common usecase for backend modules. But I could not find any example for this.
Am I mislead about the usage of backend modules somehow?
TYPO3 Provides a Lot of Configuration Options.
in the Extension Manager
this allows you to set settings on a Systemwide Basis.
allows you to Set extension settings. using the ext_conf_template.txt this is easy for extension developers. and only accessible by admins. https://docs.typo3.org/typo3cms/CoreApiReference/ExtensionArchitecture/ConfigurationOptions/Index.html
Typoscrip Contants
this allows you to set configuration on a page basis, this is a great choice if you setup different settings on diffrent pages. or have a mutlipe sites in one TYPO3 Installation. there is an Interface "Constants Editor" in the Template Module which allows editors to set the settings of the constants.
Plugin / Flexform
the most common way an editor configures some settings. but they have to repeat them for every plugin.
Backend Modules
Backend modules are Designed for mor Complex task like manageing a News workflow. or giving inside-view into some process (status reports etc.) of cours they could be used to just store some simple settings. but its uncommen. and clutters the TYPO3 Backend Interface.
AdditionalConfiguration.php / ext_localconf.php this allows you to set very Low Level Configuration. if your configuration needs to be Availible only to Developer or needs to be Present in an Eary Bootstrapping Phase of TYPO3 this is a good choice
I your case, I would create a simple backend module and store the credentials in the Registry. This is easy to explain to the customer and you have the possibility to give access to that module to special user groups. By using the registry there's no need to create custom Tables.
Guide on how to create a backend module : https://docs.typo3.org/typo3cms/ExtbaseFluidBook/10-Outlook/2-Backend-modules.html
Guide on the Registry: https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/SystemRegistry/Index.html

WAGTAIL forms to external DB

I have a small research project, but so far I haven't found anything. I want to know if there's a way to use forms in Wagtail to be able to populate an external DB (postgres located somewhere else).
The idea is to create a back-office that is self-managed in wagtail and where the users can fill the forms with the data required and this data is to be stored on an azure postgresql cluster.
Use Django's forms framework. This is one scenario where using the Wagtail form builder is counter-productive: the Wagtail form builder is all about letting the content editor define the list of form fields within the Wagtail admin, but in your case the form fields are pre-determined by your external database structure, so specifying them within the Wagtail admin would be needless duplication of work.
See https://github.com/gasman/wagtail-form-example/commits/master for an example of integrating Django forms into a Wagtail page.

How to add custom form and insert data into database in alfresco 5.2

In my alfresco project have requirement for add custom form and data will be store in database.
I would like to submit one form having user name & password fields in it. After click on submit button how can I handle request in backend so it will use Alfresco to process request and store details in database.
I am ready to do this in spring, maven or any java technology but please suggest me how i customize alfresco with custom web form.
I have reefer these links but i have not getting proper answer.
https://community.alfresco.com/docs/DOC-6010-web-quick-start-installation-and-configuration#w_configuringwebquickstart
https://community.alfresco.com/docs/DOC-5527-cmis
If you want to customize the existing Alfresco Share client by configuring forms that allow you to edit properties on folders and documents where those properties are defined using custom types and aspects, then follow this tutorial.
If you do not want to be constrained by the Alfresco Share client then you must write a custom application.
The Alfresco NG2 components were suggested to you, but you would prefer to use Java. So use whatever Java framework you do know and then communicate with Alfresco remotely using CMIS via the OpenCMIS Client for Java.
If you are just building a custom form that captures arbitrary data and stores it in a back-end (relational or otherwise), and your requirements have nothing to do with documents, then you should not be using Alfresco at all.

Try to use variants and table personalisation on SAPUI5 SmartTable

I want to use the variants to customise different filter and table variants on a SAP Fiori application, that use SAP Hana Cloud and Java backend.
As a background info:
I'm using a smartTable that is connected to the smartFilter by filterId property. On the table/filter I am able to access directly the data from the metadata by filing the entitySet / entityType property. I am using a real server not a mock server. In the table the properties regarding the personalization and variants are enabled (useTablePersonalisation="true", useVariantManagement="true"). I see that I have to specify the persistencyKey so that variants can display on the UI, but i don't know what value should i complete it with.
I read that smartTable and smartFilter are using SmartVariantManagement(a custom control of VarinatManagement) to accessed directly (without user interaction) SAPUI5 Flexibility Services regarding personalization data and management of the variant. But on SAP Help it says that:
Flexibility services are currently not available in SAP Hana Cloud Platform.
The services run on the ABAP front-end server and NetWeaver 7.31 SP11 or higher
Here is the link: http://help.sap.com/saphelp_hanaplatform/helpdata/en/a8/e55aa2f8bc4127923b20685a6d1621/frameset.htm
It is possible to use the variants and personalization?
How can I do it regardind my application specification?
Does anyone have an example application?
Thank you !
You can use them both at the same time.
For me the useTablePersonalisation="true" is working without any other changes. Rearding the useVariantManagement="true", I use showVariantManagement="true" also, and as you said persistencyKey="SmartFilter_Explored" is also needed to see Variant Management icon.
This is an example: https://sapui5.hana.ondemand.com/explored.html#/sample/sap.ui.comp.sample.smarttable/preview
For me I can not test the variant management functionality when running the app from webide as it is needed an existing user for you. So I can test it only, when running it on launchpad.
PersistencyKey identifies the storage area and saves/retrieves the variants currently used.
This page helps you with persistency key (under Page Variant section):
https://sapui5.hana.ondemand.com/#/topic/06a4c3ac1cf545a7b51864e7f3aa02da
I hope it helped.