Using expression to Display a object field value into Salesforce Hero - salesforce

is there a way to display a object field value(rather than recordId and recordName) into a Hero in Salesforce, I wanna display the caseNumber, but it's not converting into the expected result.
enter image description hereenter image description here
I tried, other expression formats, and also created a aura component to display the caseNumber into Hero, but realized that it cannot be dragged into the Hero

Related

ReactJs how to dynamically render a page based on user selection?

I'm trying to build an E-commerce shop and using the rule "Don't repeat yourself", I have a data.Js file that contains an array of objects - each object is a corresponding watch (has name, ID, price, description and other details). I have all the watches displayed on the homepage, like this:
What i want is:
When a user clicks on a specific watch, to then be taken to the product page that corresponds to the specific watch (I.E. get populated with data matching the correct object, with {item.id} and {item.title} and {item.price} and etc.
How can I do this so that React knows which watch the user clicks and how to populate the product page with the correct data?
Thank you very much in advance!

How to pass table data to Array of objects so i can submit the result in Formik?

Hello there Hope you doing great,
I have tried to implement an idea which is as follow , but I failed, let me know if you can help me out :
So , there is two textfield inputs type select where the user should select the course and its payment method and add it to the table and he/she could as well add more then one course as well delete if they need to
So the main problem here by the way I am using mui multistep form using formik and I want to submit the content of the table after they finished selecting as an array of objects like every course and its payment method Together
and about the validation should test whether the length of the table is 0 So its gonna return a massage tells you have to select at least one course
enter image description here
enter image description here
enter image description here
enter image description here
enter image description here

How to display all data from a paragraph field in views (Drupal 7)

I am currently a caretaker for a Drupal 7 website and I can't figure out how to group paragraph items in views. I have created a content type Products and one of the fields is called product variation which is field type paragraphs. I have created a paragraph bundle for that field.
Then I created a view to show the products on the front page. To display the paragraph fields I created a content relationship. When I open the relationship option and select delta to display one it only shows one and I can't get data from the others. If I select delta to display all it shows like in the image below (Current view displays like). The goal is shown on the same image. Could someone help me solve this:
My setup on the fields I want to display in the view are setup like this
`content-type: Products
product name - field type: Node module element
proudct image - field type: Image
product variation - field type: paragraph
paragraph bundle: product variations
color (Term reference)
view:
Display: product name, product image,product variation
Relationship: Content: product variation (field_product_variation)
Hopefully, someone can help me solve this problem.

How use one field of a form to populate other fields in Bonita?

I have a form variable of type external API called customersList. It is a list of customer objects. In my form, I have a Customer Name and Customer Id. For the Customer Name, I use an auto-complete widget. So, when I type something in the Customer Name field, it will give me a list of suggestions. When I click on one of the suggestion, I want the Customer Id field automatically populated with the information corresponding to the name I choose.
For example, the first object of a customersList variable which is:
customersList[0] = { "customerName" = "One Time Customer", "customerNumber" = "0000" }
Thus, when I choose Customer Name field to be One Time Customer, I want the Customer Id to be set to 0000 automatically.
I set the value of the Customer Id field to be customersList[0].customerNumber. But, it is static.
(please note: customerNumber represents Customer Id)
Any tips on how to do it?
Sadly the default autocomplete widget won't let you achieve such use case.
In fact the default autocomplete widget can take a list of JSON object as "Available values", can use one of the attribute of those objects as the display value ("Displayed key" property) and use it for autocompletion but it will only store this value (i.e. the one being displayed).
In your use case it means that you can use your customersList for "Available values" and customerName for "Displayed key" but you will only be able to save the customerName in "Value".
The good news is that a custom widget that do just what you want is available as a community contribution. Checkout the project page to download it and then import it in your UI Designer. An example of usage of this custom widget is also available for download from the project releases.

Prestashop : Save additional field from product page in database

I have Added 2 text box in product page to recive height an width from user for each product.
I have used textbox input just like quantity in The buy-block Form.
Now I want to save this textboxs in Database and use them in cart page and order page for each cart and product.
I added 2 variable in cartcontroller.php like $qty in function preProcess() .
Now how can I save them in DB?
If I understand, you want your customers to submit custom values along the product they order.
In this case, you should look for "product customization" fetaure of PrestaShop :
http://doc.prestashop.com/display/PS15/Adding+Products+and+Product+Categories#AddingProductsandProductCategories-ManagingCustomization
You can add textbox on product page, customers will type values, these values wiil be displayed on cart and order detail.

Resources