How to pass parameter from D365 portal to workflow/action? - javascript

I am using the Integrated Portals coming with D365. I have an entity list and I've put a date-picker and a submit button in the page. I want to update the records inside the entity list with the date that the users selects from the date picker.
My problem is that I do not know how to pass the date picker value from the portal to the workflow (or somebody suggested using Actions).

Related

How to store data typed by user into input using Django

I'm kinda new to Django and I got stucked.
I want to get user input, and after that, I want to display a value that depends on it.
For example in Django I have if statement which checks input from the user, for the example car model.
So, when the user type is Ibiza I want to display "Seat", user type E92 I want to display "BMW" etc
I want to display car brands in the list that can be cleared or disappear after the user close the tab and re-open.
Which solution is the best? Database in Django? Cookies? Local storage in javascript?
Use the Database. That way you have more control of the data.

COGNOS REPORT assign dynamically default prompt value with Java Script

I am working with Cognos 11. I have a list of parameters for a list of users. My problem is that I can't set a default value because each client has different data.
For example: I have a client that has data until NOV-2019 and another FEB-2020.
I need for the report to take the last date available and show the report associated to that date.
I was looking at documentation and it is supposed to be with JavaScript/HTML. I don't know JavaScript/Html.
I have a parameter p_period that needs to be loaded with the last date available and a prompt combo box.
Can anyone help me please

Dynamics CRM - call javascript resource

We are in the process of migrating our data to CRM online.
I would like to run some javascript code that I have that creates the sharepoint folder for an entity when the page loads.
However as we are using an api to create the record from existing data, is there a way to call/trigger the javascript on record create?
There is no hook for JavaScript with Dynamics CRM to trigger an action when a record is created, however the following may work (although is a little messy!).
1) Create a new dummy field (hidden, but on every the form) called "SharePoint Created?", this is a two options field, default value of "No".
2) Create a new JavaScript function to execute on "Form Load", which checks the form type to ensure its in edit mode (not create), if so, checks the value for the "SharePoint Created?" field, if this field is "No", update it to "Yes", call your SharePoint creation function, then save the record.
The better option would be to the move the call to a Plugin, which can be executed on create of a record, but understand authentication is always a problem.

Access a record's data to fill in form_for text_fields on Ruby on Rails 4

I am learning RoR 4 on my own and I have been stuck for a while with this issue.
I have a form that gather a Student's information. I would like to autofill many of the fields if the Student specifies info from the existing database. For example, there is a drop down of available school's to which the student can choose to attend that is stored in the School model. When the student selects a school, I am trying to populate other fields in the form with the values of that School selection so the user does not have to specify it again.
I do not understand how to design my form in a way to allow me to grab the data and store the values in the fields.
I would appreciate any resources and help as I have been searching for a while!
Well you could respond to on_change event at the select box. Then all you need to do is send get request somewhere into Schools controller to get info about particular school and using javascript on the frontend again parse the response and put it into appropriate fields.

Storing Javascript object in Wordpress User Database

I am working on a page where user can create his own unique , personalized week schedule.
Right know all about the schedule is stored in javascript object - scheduleArray.
Here is the site with my work so far
How can I store this javascript object to logged user database in WP?
I need to load it from database on site init, and later when user clicks "SUBMIT" button store it back to database.
Could you provide me any ideas, tutorials from which I can start on ?
Thanks!
As one way - add field (maybe something like next https://tommcfarlin.com/add-custom-user-meta-during-registration/) to user profile and store JSON here.
When yser submit form - you can create hidden field with this (by "onsubmit" event) and write to user field by server-side script.

Categories

Resources