bpm'online community,

How to create a custom editing page for details Files?

I need to change the value of custom lookup depending on the type of document.

 

I've already added all the necessary fields to the object "UsrProjetsFile".

I don't know which scheme to change to insert the fields into the editing page, which is opened by double-clicking on the details record File.

Could you please help with this issue.

Thanks!

Like 0

Like

2 comments

Hi Mariia,

 

Did you figure out on how to change this?

I am looking for the solution as well.

 

Thank you in advance!

 

 

Kind regards,

Yosef

Hello Yosef,

 

Yes, we have found a solution. It was simple for our case.



Firstly, you need to add the necessary column to the [Section]File object, where [Section] is the name of your section in which the detail files are placed (In my example the column with type lookup names "Nature").

Then you create a "Replacing Client Module" where the parent schema is LinkPageV2 ( UIv2 ).

And then you create your column in the diff part:

define("LinkPageV2", ["terrasoft", "BusinessRuleModule", "ext-base", "sandbox", "ConfigurationConstants"],
function(Terrasoft, BusinessRuleModule, Ext, sandbox, ConfigurationConstants) {
	return {
		methods: {},
		diff: /**SCHEMA_DIFF*/[
			{
				"operation": "insert",
				"parentName": "LinkPageGeneralBlock",
				"propertyName": "items",
				"name": "Nature",
				"values": {
					"bindTo": "Nature",
					"layout": {
						"column": 12,
						"row": 0,
						"colSpan": 12
					}
				}
			},
		]/**SCHEMA_DIFF*/
	};
});

That's it)

 

Best regards,

Mariia

 

Show all comments

I would like to have multiple edit pages configured to display depending on what needs to be done with a record that is not necessarily dependent on section field or for use with multiple statuses. For example, having the same edit page used for modifying a page that may be active or obsolete, which is different than adding a new record. If I add multiple edit pages and no field is selected in the New Page dialog, then all of the pages are "Not used," which is not accurate.

Like 0

Like

1 comments

Please investigate the structure of the "add" button in the diff. 

http://prntscr.com/n3nu3n

http://prntscr.com/n3nuj4

http://prntscr.com/n3nuyr

There are attributes and methods that you can override in order to add the functionality that you need. 

Show all comments

I'm trying to limit the selection of a person by their organizational role.  Contact and Employee sections don't surface the roles associated with the user. Trying to assign the User in roles or similar lookup generates the error, "Property 'Displayed value' is not set in the selected lookup. You cannot select values from this lookup without this property. Set this property in 'Advanced settings' section and try again."  How do you filter a Lookup column in an Edit page to only display contacts or users with a specific organizational or functional role?

Like 0

Like

1 comments

Dear Janine,

It is not possible to display the user's roles on his contact page. However, if you need to filter the contacts by their roles, as a workaround you can make up the following filter in the section - http://prntscr.com/n0zv8p

You can also modify the highlighted part and choose the required roles that will be displayed.

Best regards,

Dean

Show all comments

Currently, the default value for Integer and Decimal columns is 0 and it is automatically applied if no answer is entered in the field for a record.  There are many instances where it is important to distinguish between no answer and a number answer.  For example, building an inspection questionnaire it's important to know if a measurement was zero or skipped.  Please enable NULL answers in Integer and Decimal columns.

8 comments

Dear Janine,

I'll inform our R&D team about this issue and suggest them to implement it. Thank you for helping us to make our application better!

As a workaround you can use allowZerovalue: true parameter to allow zero values

Best regards,

Angela

Angela Reyes,

I'm not sure what allowZeroValue does or how to set it.  I'm not trying to prevent someone from entering a zero if that's the appropriate measurement.  I'm trying to enable not entering any number in a number field.  Otherwise, I have to set the field to required, then provide another column, something like a Not Applicable checkbox, to represent when the number field should be interpreted as blank and use a business rule to make the field not required when the checkbox is checked, which is a very cumbersome workaround and adds a lot of unnecessary data to the database.

Hi,

Did you find out how to do it yet? I have the same problem.

Thanks!

Regards,

Nuno Gonçalves

Nuno Gonçalves,

The only alternative is to have another field, for example, a Boolean, to indicate that 0 is the desired answer.

This is a desperately needed feature - a null value is entirely different from the number zero and the default behaviour should be to treat no value entered as null.

Hello Harvey, 



Thank you for sharing this with us. 

We have added your comment to the created query for our R&D team so to increase the priority of implementing this functionality in future. 



Kind regards, 

Roman 

Roman Brown,



Hi Roman, can you expand on the solution using the parameter "allowZerovalue: true" ... It's strange that this isn't a feature yet - do you advise to use a string for integar columns such as "License Number", which should only be a number.

Null value please.  Different between someone setting 0 as a value and no value being set (i.e. null). Need to be able to test for both..

Show all comments

When nothing is entered in an Integer or Decimal field in an edit page, the field shows a zero value after saving the record.  Is it possible to turn off this behavior, so that null is an acceptable answer for fields that are not required?  For example, I don't want to test against a 0 limit when the requirement was that something pass or fail, but there is an option to enter a numerical limit if needed. Null is the appropriate answer, not 0, in this case.

Like 1

Like

5 comments

Dear Janine,

Such changes cannot be made at the application level, since a change in the default value is possible only at the database level, but such actions can adversely affect the operation of the application, since the application logic is not designed for the default NULL value for the Integer and Decimal columns.



If such changes are made to the database, this may lead to unforeseen errors, which in turn may affect the performance of individual application blocks or the entire system.

Regards,

Anastasia

Anastasia Botezat,

Hi,

Is there any update on this functionality? We would like to be able to populate an Integer or Decimal field to NULL instead of 0. Is that possible? 

Esther M,

 

No, it's not currently possible to perform this operation. Our R&D team is working on implementing this functionality, and their task is in the "Accepted" status. We will update you in the application's release notes once this functionality is implemented.

Hi Oleg, is there any update on this? A rough estimate of timeline or knowing if it's being actively worked on would be really good - it's constantly an issue that has to be worked around in various less-than-ideal ways that are sources for inconsistencies.

Harvey Adcock,

 

Hello,

 

The task is still in progress and the only workaround that currently exists is using the text column instead of a number. In case this number should be processed it can be done using type casting in formulas (or script tasks) of business processes.

Show all comments
Discussion

Add a column type that is only based on formulas to enable columns for sorting and summarizing.  This is to avoid adding a String column that is changed in a process and duplicates existing information, and, preferably, have it immediately available as the page is edited.

4 comments

Dear Janine,

Can you please provide an example of such column/formula? 

Best regards,

Angela

For example, I have standards that come from an organization and have an ID. I would like to have a computed column that displays and sorts in the format <Standards Organization> <Standard ID>, instead of two separate columns.

Especially since I can only sort by one column at a time, and I may want to concatenate several columns and transform them in various ways

Janine White,

Thank you for your suggestion and example provided! 

We have registered the following request for our R&D department and they will consider enhancing such functionality in upcoming releases. 

Best regards,

Angela

Show all comments

Hi Community,

I need to fetch data from third party database and display it on edit page, is it posible to connect to third party database on edit page using client code? or what is the best approach?

Like 0

Like

1 comments

Dear Fulgen,

Unfortunately, it is not possible to connect a third-party database to the system to display its data on the edit page. As a solution you can download all the necessary data from your  third-party database and import it via basic Import tool. Here is the article that will help you out:

https://academy.bpmonline.com/documents/base/7-13/excel-data-import

One more solution - you can create your custom web service that would pull the data from a specific service into bpmonline automatically. Here is the article that might help you as well:

https://academy.bpmonline.com/documents/technic-sdk/7-13/how-create-cus…

Best regards,

Dean

Show all comments

Hi Community,

 

Is there a way to pass parameter from business process back to my edit page.

Like 0

Like

1 comments

I tried to add a custom button to an edit page, so I inserted the following code to the diff array:

{
	"operation": "insert",
	"parentName": "LeftContainer",
	"propertyName": "items",
	"name": "CustomButton",
	"values": {
		"itemType": Terrasoft.ViewItemType.BUTTON,
		"caption": {"bindTo": "Resources.Strings.CustomButtonCaption"},
		"classes": {"textClass": "actions-button-margin-right"},
		"click": {"bindTo": "customAction"},
		"style": Terrasoft.controls.ButtonEnums.style.GREEN,
		"tag": "custom",
		"markerValue": "CustomButton"
	},
	"visible": true,
	"index": 4
}

The button is shown if I enter the edit page directly by coping and pasting its URL or refreshing the page but if I enter it from the section's main page, it is not shown. Do you know how to fix this problem?

Like 0

Like

4 comments

Hello!

You need to add the following button to the section schema as well and you will see the button you need.

Matt

I tried to do that and my code in UsrCustomEntitySection.js is:

 

{
	"operation": "insert",
	"parentName": "SeparateModeActionButtonsLeftContainer",
	"propertyName": "items",
	"name": "CustomButton",
	"values": {
		"itemType": Terrasoft.ViewItemType.BUTTON,
		"caption": {"bindTo": "Resources.Strings.CustomButtonCaption"},
		"classes": {"textClass": "actions-button-margin-right"},
		"click": {"bindTo": "customAction"},
		"style": Terrasoft.controls.ButtonEnums.style.GREEN,
		"tag": "custom",
		"markerValue": "CustomButton",
	},
	"index": 4
}

The button appears on the section page but still not on the edit page (except when reloading it).

Carlos Zaldivar Batista,

Hello.

Please make sure you have done the necessary modifications according to the article below:

https://academy.bpmonline.com/documents/technic-sdk/7-12/adding-button-…

Matt

Matt Watts,

Ok, thank you, it works. I didn't find this article myself.

Show all comments

Hi,

we are using your specification about how to trigger a process form an edit page.

Well, in this way all work fine, and we pass to the process a value like a parametre in ARGS using your example:

var args = {
                        // Name of the process that should be run.
                       sysProcessName: "CustomProcess",
                        // Object with the value of ContractParameter input parameter for CustomProcess parameter.
                       parameters: {
                            ContactParameter: contactParameter
                        }
                    };

 

But our question is if like we can pass a value to the process like INPUT, Can we receive a value form the process like OUTPUT to the Edit Page?

Thanks.

 

File attachments

Like

1 comments

Dear Ignacio,

Please see the following article, it has the instructions and examples on how to pass a process execution result.

https://academy.bpmonline.com/documents/technic-sdk/7-7-0/running-bpmonline-processes-through-web-service

"This example demonstrates running of the CustomProcess process. The process execution result is stored in the input parameter of the CustomProcessResult parameter and returned in the query. The incomeParam parameter with "IncomeParamValue" is transferred additionally to CustomProcess process

.../0/ServiceModel/ProcessEngineService.svc/CustomProcess/Execute?ResultParameterName=CustomProcessResult&incomeParam=IncomeParamValue

The method execution result returns in the form of a string that contains JSON-serialized value of random type data (null value is acceptable). Deserialization and reduction of the obtained result to a definite type of data should be executed in the code that calls the web-service. 

If the parameter with the RESULTPARAMETERNAME name is missing in the called process, the web-service will return a null value."

 

Show all comments