Administrator

Hello All,

I would like to pass some field values to opportunity from Account by cliking on custom button created on Account. I am not able to pass values I have done below code but not getting desired output.

https://004989-crm-bundle.bpmonline.com/0/Nui/ViewModule.aspx#CardModule...

File attachments

Like

5 comments

Dear Amol,

Unfortunately, we are unable to access your code to see how you've implemented the task. However, we are happy to give you some hints for the solution.

In order to recieve some data from another section/detail/page you can use EntitySchemaQuery. Basicly what you need to do is to create a button ( which you've already done), call a method by clicking on the button. In this method cashe the scope (var scope = this) --> create an esq to the Account object --> in the callback obtain the data from the object -->via 'scope.set' set the values to the needed fields. 

Please see the article for more information on how to write EntitySchemaQueries:

https://academy.bpmonline.com/documents/technic-sdk/7-8/use-entityschemaquery-implementation-client

and despite the article is about С# usage, it gives more deep understanging of esq usage:

https://academy.bpmonline.com/documents/technic-sdk/7-8/use-entityschemaquery-creation-queries-database

Hi Amol, If I understand what you are requesting is to parse the URL to get the values...try this:

var urlToGetValues= 'https://004989-crm-bundle.bpmonline.com/0/Nui/ViewModule.aspx#CardModuleV2/OpportunityPageV2/edit/6344d6ce-f889-4361-83f2-9cd71dbd6300?Amount=31313';
var ammounfFromURL= urlToGetValues.split('Amount=');

// you get on ammounfFromURL[1] the value of amount...

 

 

Test it here Test Amount from URL

Hi Julio thnx for your reply,

Can u plz tell me how to set a value in callback. I am not able to do that.

Dear Amol,

The probable cause of the issue could be related to not cached scope. Please see the example below. You can transfer it to your OpportunityPageV2 schema for further development:

			obtainInfoFromAccount: function() {
				var scope = this;
				var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
					rootSchemaName: "Account"
				});
				esq.addColumn("Name");
				esq.filters.add("accountName", this.Terrasoft.createColumnFilterWithParameter(
						this.Terrasoft.ComparisonType.EQUAL, "Id", this.get("Account").value));
				esq.getEntityCollection(function(result) {
					if (result.success) {
						var item = result.collection.getItems()[0];
						var name = item.get("Name");
						scope.set("Title", name);
					} else {
						return;
					}
				});
			}

In the example we take account's name and set it to the opportunity title.

Hope you find the example helpful. 

Show all comments

Hello All,

I have requirement where If I would like to change the opportunity stage the system should allow me to change stage only in following conditions:

1] If that opportunity has no opened task in action panel. If there is opened task in Opportunity edit page action panel and user tried to change the stage system should show me error message.

   I have created the task on opportunity as the stage changes but i am not able to get how to check for the open task on particular opportunity stage before going to next stage. Please provide the help. 

File attachments

Like

1 comments

Dear Amol,

In order to implement such logic, please, create a replacing client module for the opportunity page. 

Afterwards, in the method section you need to add logic. Firstly, every time you go from one stage to another the page gets reloaded. Threrfore, we need to interfere to the save method and check, if the needed field is filled in. If not, then do not save. In the example below we are checking if Email field is filled in. Please use it as an example for your opportunity page business task.

define("LeadPageV2", ["LeadPageResources"], function(resources) {
	return {
		entitySchemaName: "Lead",
		attributes: {
			"OldStatus": {
				type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
				dataValueType: Terrasoft.DataValueType.CUSTOM_OBJECT,
				value: ""
			},
			"CustomerAgree": {
				type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
				dataValueType: Terrasoft.DataValueType.BOOLEAN,
				value: false
			}
		},
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/,
		methods: {
			onEntityInitialized: function() {
				this.callParent(arguments);
				this.set("OldStatus", this.get("QualifyStatus"));
			},
			save: function() {
				if (this.get("OldStatus").value !== this.get("QualifyStatus").value) {
					if (this.get("Email")) {
						if (this.get("CustomerAgree") === true) {
							this.callParent(arguments);
							this.set("OldStatus", this.get("QualifyStatus"));
						} else {
							var scope = this;
							this.showConfirmationDialog("Are you sure?",
							function(returnCode) {
								if (returnCode === Terrasoft.MessageBoxButtons.YES.returnCode) {
									scope.set("CustomerAgree", true);
									scope.save();
								} else {
									this.set("QualifyStatus", this.get("OldStatus"));
								}
							}, ["yes", "no"]);
						}
					} else {
						this.showInformationDialog("Please insert the Email");
						this.set("QualifyStatus", this.get("OldStatus"));
						return false;
					}
				} else {
					this.callParent(arguments);
				}
			},
			onSaved: function() {
				this.callParent(arguments);
				this.set("CustomerAgree", false);
			}
		},
		rules: {}
	};
});

 

Show all comments
Administrator

Hi All,

I have created the custom button on Contact edit page. But I have to refresh contact edit page every time to view the custom button. The button works fine.

The only problem is that the button is not visible unless and until I refresh the contact edit page every time. Please provide me a solution for that.  

Like

9 comments

Hi Amol,

Unfortuntaely, it's hard to understand why this is happening. Could you please give us step-by-step reproduction of the case when the button gets invisible?

Best regards,

Lily

 

1. I have created custom button on contact edit page with help academy doc.

2. When I go to Contact Section and open any record from contact section, it does not show me my custom button. But as soon as I refresh the same contact edit page, it shows my custom buttons, why I don't know, but it is quite strange.

Dear Amol,

To make the button appear in a proper way, you need to add it both on ContactPageV2 and ContactSectionV2.

Please also read this article. It will be very helpful.

Best regards,

Lily

 

Hi Lily,

First of all thnx for your reply. But if I add my button code on Contact section page then it displays me my button on section page. And remaining issue is still there 

Hi Amol,

Did you manage to follow the Academy instruction as according to the article you need to add the program code in replacing schemas both for page and section. 

If you still face difficulies, please contact support@bpmonline.com specifying instance and test credentials in order we can assist.

Kind regards,

Nataly
 

thanx for reply

When you open a page at the first time, the page is opening in a separate mode. It means that the buttons on top left corner of the page are not from the page but from the section (contactsectionv2 for example). Please add the button both into the section and into the page. The parent container of the button in the section will be CombinedModeActionButtonsCardLeftContainer

Please use the "Close" button as an example.

The close button in the section

{
					"operation": "insert",
					"name": "CloseButton",
					"parentName": "CombinedModeActionButtonsCardLeftContainer",
					"propertyName": "items",
					"values": {
						"itemType": Terrasoft.ViewItemType.BUTTON,
						"style": Terrasoft.controls.ButtonEnums.style.BLUE,
						"caption": {"bindTo": "Resources.Strings.CloseButtonCaption"},
						"click": {"bindTo": "onCardAction"},
						"visible": {"bindTo": "ShowCloseButton"},
						"classes": {"textClass": ["actions-button-margin-right"]},
						"tag": "onCloseClick"
					}
				},

The close button in the page

{
					"operation": "insert",
					"parentName": "LeftContainer",
					"propertyName": "items",
					"name": "CloseButton",
					"values": {
						"itemType": Terrasoft.ViewItemType.BUTTON,
						"style": Terrasoft.controls.ButtonEnums.style.BLUE,
						"caption": {"bindTo": "Resources.Strings.CloseButtonCaption"},
						"classes": {"textClass": "actions-button-margin-right"},
						"click": {"bindTo": "onCloseClick"},
						"visible": {"bindTo": "ShowCloseButton"}
					}
				},

Please note that the onCloseClick method is only in the page.

Nataly Young,

 

Hello. I had the same problem. I could not open your link for article. can you resend it please?

Xoji,

 

Hi, the link to the article was updated.

Show all comments
Administrator

Hi,

I would like to run source code, how can I do that? I have published it but not able to run it in my free trail instance. In configuration tab, as soon as I right click on source code the run button gets disable automatically.

 

Thanks

Sachin

File attachments

Like

1 comments

Dear Sachin,

 

Unfortunately, our system does not allow to run the source code. You have the tools to generate or edit it, though. 

You may find more information about working with the source code in our Academy chapter dedicated to it - https://academy.bpmonline.com/documents/technic-sdk/7-8/source-code-and-metadata-viewport.

 

Best regards,

Lisa

Show all comments

Hello All,

I am not able to save replacing object getting below error.

"Error while saving: Unexpected character encountered while parsing value: =. Line 1, position 1."

File attachments

Like

1 comments

Dear Amol,

This error could occur due to a number of different reasons. It's hard to say what exactly caused this issue without any investigation.

Please send an email to support@bpmonline.com with more detailed description of the case and attach a screenshot so that we can investigate it and suggest a solution as soon as possible.

Best regards, 

Lily

Show all comments
Administrator

Hello All,

Can I configure the audit log to monitor some selected operations? I have tried but not able to do that. Please help

Like

3 comments

Hi Amol,

Please send the email to the technical support team (support@bpmonline.com) with the request for the audit log to be displayed.

More information about audit log you can find on https://academy.bpmonline.com/documents/sales-team/7-9/audit-log-section  

Have a nice day,

Nataly

Nataly Young,

Hi, the academy link which is provided to gather more info on audit log is not working, can you please share the updated link to read more on audit log.

KrishnaPrasad,

Please use the following link: 

https://academy.bpmonline.com/documents/administration/7-13/audit-log-s…

Best regards,

Angela

Show all comments

how many sections we can add in the system?

File attachments

Like

2 comments

Hi Amol,

There is no limit on the number of sections you can create. Although, we recommend using minimal amount and making the most use of them by adding additional pages, details, etc.

thnx Adam

Show all comments
Administrator

While creating company user I am getting message like "Unable to create webitel user for added employee". I ma not able to find the reason behind that can anyone please give me the reason behind that.

File attachments

Like

4 comments

Dear Amol,

The error occured as the Webitel account was not automatically created but the user was successfully added to the system. If you want to use Webitel telephony, you need to add the user to the Webitel users lookup.

Please follow this link to get more detailed description of the Webitel telephony settings.

Regards, 

Lily

Thnx Lily. May I know the use of adding in webitel lookup

Dear Amol,

 

'Webitel Users' lookup is the convenient instrument of checking and configuring all the telephony users in one place in the system. 

If you have a new user who needs to take advantage of the telephony, you need to go to this lookup and add it there. Also, in case there are many users in the system, you can use the lookup to check what phone numbers are taken already, and what contacts are they linked to. If needed, you may change the number for the specific contact there as well. 

Best regards,

Lisa

Thanx a lot Lisa

Show all comments
Administrator

Hi ,

Can anyone plz give me the information about the bpm'online admin certification in details. I have found that on academy but not able to get completely.

File attachments

Like

1 comments

Dear Amol,

Please follow this link to get more detailed information about certification policy, exams and rules: https://academy.bpmonline.com/sites/default/files/pdf-com/Certification…

 

  • Certification for bpm’online system configuration, customization and administration is intended for CRM implementation specialists, analysts, sales managers, pre-sales engineers and CRM coordinators.
  • Certification for development on the bpm’online platform is intended for programmers that develop products and solutions on the bpm’online platform. “Advanced” level of certification enables you to be the authorized user of the bpm’online academy customer support services and get consultations on development on the bpm’online platform. For this purpose, you will have to complete the “Advanced” certification for development on the bpm’online platform.

Here you can find the information that will help you to get prepared for the exam.

If you have some specific questions, please address them to support@bpmonline.com

Best regards,

Lily

Show all comments

Is there any way to add custom validation on bpm'online using server side coding in C#? If yes the how?

File attachments

Like

1 comments

Hi Amol,

The C# code validation is triggered when you are publishing (compiling) an object or a schema:

If there are any errors, a separate window will pop up, indicating errors and exceptions. Also, you can debug the source code directly within Visual Studio if SVN is set up:

https://academy.bpmonline.com/documents/technic-sdk/7-8/working-server-…

Show all comments