Question

Open Mini Page

Hello all, I am trying to open the Activity Mini page from a lead record.  

 

I am able to use ""operation": this.Terrasoft.ConfigurationEnums.CardOperation.ADD," for adding, but I am trying to View or Edit. Neither of them seam to work.  Code is below. I am passing in the Name: ID, Value: the guid of the activity.  

I do not receive any errors in the console, it just does nothing.

 

Any Hints

Thank you

this.openMiniPage({
					"entitySchemaName": "Activity",
					"operation": this.Terrasoft.ConfigurationEnums.CardOperation.VIEW,
					"valuePairs": defaultValues,
					"isFixed": true,
					"showDelay": 0
				});

 

Like 1

Like

6 comments
Best reply

Hi Keith,

I don't see where you're setting the Id of the activity to view/edit. I believe that the config passed to openMiniPage (implemented in MiniPageUtilities mixin) allows for a recordId to be included in the config for the record to open. Try something like this:

this.openMiniPage({
	"entitySchemaName": "Activity",
	"recordId": [Id of activity here],
	"operation": this.Terrasoft.ConfigurationEnums.CardOperation.VIEW,
	"valuePairs": defaultValues,
	"isFixed": true,
	"showDelay": 0
});

Ryan

Hi Keith,

I don't see where you're setting the Id of the activity to view/edit. I believe that the config passed to openMiniPage (implemented in MiniPageUtilities mixin) allows for a recordId to be included in the config for the record to open. Try something like this:

this.openMiniPage({
	"entitySchemaName": "Activity",
	"recordId": [Id of activity here],
	"operation": this.Terrasoft.ConfigurationEnums.CardOperation.VIEW,
	"valuePairs": defaultValues,
	"isFixed": true,
	"showDelay": 0
});

Ryan

Additionally, to display a VIEW mini page I typically use something like this (passing a recordId assumes VIEW operation), You can use targetId to include the ID of a DOM element to pin the view mini page to:

this.openMiniPage({
	columnName: "Id",
	recordId: contact.value,
	entitySchemaName: "Contact",
	targetId: "UsrSidePanelSchemaContactHyperlink"
});

Ryan

Ryan Farley,

Thank you very much. I was passing the id in with "valuePairs": defaultValues" As that was how I saw it used else where.  Using "recordId": [Id of activity here]"  worked perfectly.

Thank you very much. Is this in the documentation anywhere?  

 

Thank you so much!!!

keith schmitt,

I've not seen it in the docs anywhere. Just one of those things figured out by looking through the out of the box code. 

As for the valuePairs, those are only to set the default values for when the operation is ADD. 

Ryan

Hi,

 

How can we achieve this in freedom UI?

 

the mini page is configured in classic UI. When we click on a button in freedom UI form page, the mini page should open.

 

Please help.

 

Thanks

Anyone?

Show all comments