Hi Sir/Madam,

Onload function is not working, request you to please check the below code

define("UsrPersonalDetails1Page", ["jQuery"], function(jQuery) {

   return {

        methods: {            

            onload: function() {

                    $(".control-width-15").hide();

            }

      }

 }

}

Regards

Raghu Ram

Like 0

Like

3 comments

Bpm'online uses ext.js framework's mvvm pattern. Additionally, the system converts code from pages into viewmodels using generators (for example SchemaBuilderV2 (getSchema method) and  ViewModelGeneratorV2) The error was in the fact that you tried to add jquery function into a config for a generator. The config was not connected to a page directly. Technically it's possible to perform something like 

define("AccountPageV2", ["jQuery"], function() {
	return {
		entitySchemaName: "Account",
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
		dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/,
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/,
		methods: {
			onEntityInitialized: function() {
				this.callParent(arguments);
				$("#ProfileContainer")[0].style.backgroundColor = "blue";
			}
		},
		rules: {},
		businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/
	};
});

but it's very incorrect. Please don't do that.

Please investigate the bpm'online documentation and use out-of-the-box tools that allow creating needed business logic.

Eugene Podkovka,

Hi Sir/Madam,

In the below code I have called init and render but it's not working. Request you to please check.

define("UsrClientDetails1Page", ["jQuery"], function(jQuery) {

    return {

        entitySchemaName: "UsrClientDetails",

        attributes: {},

        modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,

        details: /**SCHEMA_DETAILS*/{

            "Files": {

                "schemaName": "FileDetailV2",

                "entitySchemaName": "UsrClientDetailsFile",

                "filter": {

                    "masterColumn": "Id",

                    "detailColumn": "UsrClientDetails"

                }

            }

        }/**SCHEMA_DETAILS*/,

        businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,

        methods: {

            init: function(callback) {

                setTimeout(callback, 2000);

            },

            render: function(renderTo) {

                $(".grid-layout-column").hide();

            }

        }

    };

});

Regards

Raghu Ram

 

Raghu Ram,

- setTimeout(callback, 2000);

It's not correct to stop all application for some time. Please find other solution.

 - init: function(callback) {

- render: function(renderTo) {

init and render are not asynchronous functions. Please use this.callParent(arguments) instead. Something like

onEntityInitialized: function() {
    this.callParent(arguments);
}

-  $(".grid-layout-column").hide();

jQuery is always a bad solution in case of hiding things. If you need to hide an element that can't be hided by a business rule, please consider using CSS. You can find an example in the article by the link below. 

https://community.bpmonline.com/questions/how-add-custom-style-control-…

 

 

Show all comments

Hi community!

How are you?

How can I add a new action to dashboard panel on Contact? I want add a button that show some contact information by default when open the edit contact page

I attach image below

Like 0

Like

1 comments

Dear Ezequiel,

 

Unfortunately, there is no functionality that would allow you to customize the action dashboard buttons without the additional development in the current version of the system. We have the suggestion registered and passed to R&D team already and it will appear in one of the further releases of the system (no ETA yet).

If you need the additional button in the current system version, feel free to inspect the page and find the code responsible for the out-of-the-box buttons. Then you can use it as an example for your own development.

Lisa

Show all comments

I would like to get rid of tag button on all my pages. Is it possible to use replacing client modules to remove TagUtilitiesV2 from the list of dependencies of BasePageV2? Or maybe there's a better way to do that?

Like 0

Like

2 comments

You can write something like the code below in the BaseModulePageV2 and in the BaseSectionV2

define("AccountSectionV2", [], function() {
	return {
		entitySchemaName: "Account",
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		attributes: {
			"UseTagModule": {
				dataValueType: Terrasoft.DataValueType.BOOLEAN,
				value: false
			}
		},
		methods: {},
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
	};
});

 

Thank you very much.

Show all comments

I added an entity inheriting from Base lookup,  let's call it Registration status. Then I added a new lookup in Studio->Lookups - Registration statuses and from this interface I added two status instances - Registered and Unregistered. Then I wanted to translate the lookup name and the names of the statuses. I added appropriate records to tables SysLookupLcz and SysUsrRegistrationStatusLcz.

Now I want to save the rows from these tables in a Data package, so that they get saved in our code repository but I cannot find the tables in the drop down. I know that there's another table called Translation and that the translated strings that I created are there but the table has tens of thousands of rows and it's difficult to find my strings there. What should I do? Is it possible to save rows from tables SysLookupLcz and SysUsrRegistrationStatusLcz directly or do I have to save, carefully filtered, data from the Translation table?

Like 0

Like

1 comments

Never mind, I haven't realized that the translations get saved automatically when you save data from the base table (UsrRegistrationStatus and Lookup in my case). I'm leaving the question in case someone else searches for that topic.

Show all comments

Hi Sir/Madam,

Please tell me how to add HTML code in a page? 

Regards

Raghu Ram

Like 0

Like

1 comments

Hello,

We do not recommend to insert custom HTML code to the pages. You can use onEntityInitialized method to get the links to the parts of the page with the help of the base system JavaScript. Once you get the code of the necessary parts of the page, you will be able to alter it according to your business task.

Lisa

Show all comments

Dear Team,

                  How to get Nested Parameter value in section wizard. i trying to get value from web service using process designer how to set formula value.see below

 

Thanks in advance,

Sekhar.

 

Like 0

Like

1 comments

Dear Sekhar,

Based on the screenshot, I can assume, that you are receiving an array in the JSON response, which you want to use further in the formula. Therefore, since this is an array and you want to pass it to the text field, you need to transform it to the single string. Here you can choose two options:

1. Use String.Join method in the Formula to unite array elements. https://msdn.microsoft.com/en-us/library/57a79xd0%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

See the example of method usage in Formula:

String.Join(", ", [#MyParameter#])

2. Adding a Script Task element, where you will run a ForEach method to work with an array. The result can be passed to the process parameter and used further.

Regards,

Anastasia

Show all comments

Hi;

I create the page and want change the order of get focus of elements

I change the value of index attribute of elements but it has no influence for page behavior

also i add tabindex value with no effect.

That is example of an element diff array

            {

                "operation": "insert",

                "name": "STRING0b13ddcf-317e-4952-87eb-7051a1088698",

                "values": {

                    "layout": {

                        "colSpan": 9,

                        "rowSpan": 1,

                        "column": 0,

                        "row": 1,

                        "layoutName": "Header"

                    },

                   "bindTo": "UsrFirstName",

                   "tabindex": 1, 

                    "enabled": true,

                    "labelConfig": {

                        "caption": {

                            "bindTo": "Resources.Strings.STRING0b13ddcf317e495287eb7051a1088698LabelCaption"

                        }

                    }

                },

                "parentName": "Header",

                "propertyName": "items",

                "index": 2

            },

Like 0

Like

2 comments

Dear Tomasz,

Unfortunately, there isn't currently a way to set tabindex attribute through the diff section. We will register this in our backlog. 

Though, you can manipulate DOM elements using standard JavaScript methods, like setAttribute()

https://www.w3schools.com/jsref/met_element_setattribute.asp

Regards,

Anastasia

 

 

Anastasia Botezat,

 Thanks

Show all comments

Hi;

Is it posible to add custom validation not connecting with any page but just run on page validation on Pre_configured page

Like 0

Like

4 comments

Hello,

Please describe the filter more precisely. Where it should work if it doesn't lie on a page. 

Hi;



When i have a condition base on many elements when I join it to one element it return error ena then when any other validation appear i got the message about wrong validation.

I would like to run validation just at the quiting the page and not asign it to any element

tomasz.branicki,

I'd write something like 

methods: {
			onTestClick: function() {},
			myValidation: function(callback, scope) {
				var resultObject = {
					success: false
				};
				callback.call(scope, [resultObject]);
			},
			asyncValidate: function(callback, scope) {
				this.callParent([function(result) {
					if (result.success) {
						this.myValidation(callback, scope);
					} else {
						callback.call(scope, result);
					}
				}, this]);
			}
		},

 

Eugene Podkovka,

 THANKS

 

Show all comments

Hi Sir/Madam,

Please tell me how to call jQuery plugins from Page.

Regards

Raghu Ram

Like 0

Like

1 comments

Dear Raghu,

There is no simple possibility to call jQuery plugins. You need to create a module in a bpmonline and copy/paste code from a plugin to the module. Then add this module to the dependencies list how is described here

 

Show all comments

Hello,

I'm new to BPM Online ,I have a requirement to call SOAP service on save click is it possible through web service action from business process and can i call that business process on save button click and display user friendly Message?

Thank You

Like 0

Like

9 comments

Dear Sushma,

Read this set of articles to learn, how to call any webservice from a business process

Thank you. I am able to access with http urls  but I want to access by giving WSDL file so that it must show all the methods in file.And second thing how can i call a business process on save click and display message to end user

If you want to display a message after saving a page, maybe you don't need a business process. Anyway working with SOAP it's a development.

Just add in onSaved() function at your page a call to a function that works with SOAP. There are many javascript code examples in the Internet, that use wsdl and connect over SOAP

Peter Vdovukhin,

I am getting cross domain error while calling web service from Javascript. I am calling XMLHTTPRequest and created soap request and sending the request in the Xml format. I want to know is there any way we can set access control allow origin header?

Dear sushma,

This behavior should be set at the site where webservice is hosted. This error comes from a browser that manages response from the called webservice and expect to get such header as

Access-Control-Allow-Origin: https://mysite.bpmonline.com

Thank You Peter Vdovukhin,

I want to handle in javascript if possible . Presently i can call test service in cross domain from client side using https://cors-anywhere.herokuapp.com/. 

Dear sushma,

I do not see any question related to development in bpmonline. 

Hi Peter Vdovukhin,

I tried to implement in client side but without CORS header seems i can't achieve and in service provided by client they won't provide CORS header. Is there any work around for calling soap web service ? client has provided  WSDL document for SAP service.

Then you really should create your own configuration service that calls a SOAP service. Then you call your service when you need it. The complete example how to create a configuration service and call it from client you may see here

Show all comments