Hello,

Can we apply grouping in a virtual detail based on column value ?  

Like 0

Like

3 comments

Hello ayman,



Can you describe more precisely what you`re trying to achieve. Screenshots and pictures will be very helpful in that case.



Regards,

Alex

Alex_Tim,

Hi Alex,

We are trying to get a Grid like the attached screenshot.

 

ayman,

Hello,



In that case you should analyze the realisation of project structure detail on project page. http://prntscr.com/mtgbvn 

The code of the detail lies in "ProjectStructureDetailV2" client module. The idea is to find out how it works and create something similar.



Also I have found this application on marketplace, you can try it to understand if it suits for your purposes: 

https://marketplace.bpmonline.com/app/hierarchy-list-view-bpmonline

Best regards,

Alex

Show all comments

Hi Community,

How can I add the current year, in case number mask in system settings

 

Like 0

Like

1 comments

Dear Fulgen, 

Unfortunately, you would not be able to put this value in the system setting manually and it is not recommended to change system setting dynamically. You can edit current year in the case number using business process. You can find more information about working with Date in business process here:

https://academy.bpmonline.com/documents/technic-bpms/7-13/formulas#XREF…

Best regards, 

Dennis 

Show all comments

Hi Community,

Any Idea how can i do this, lets say in Current Case Edit Page, I want to know in client code if my previous screen before opening the Case edit Page is whether Case Section or Account Edit Page (referring to case section detail inside account edit page).

Thanks 

 

Like 0

Like

1 comments

See currentState from HistoryState

var state = sandbox.publish("GetHistoryState");

            var currentHash = state.hash;

            var currentState = state.state || {};                                           console.dir(currentState)

Show all comments

Hi Community,

How can I open an Edit Page in client code?

Like 0

Like

4 comments

Something like this

this.openCardInChain({
    schemaName: "UsrMyPage",
    operation: ConfigurationEnums.CardStateV2.EDIT,
    id: theIdToEdit,
    moduleId: this.sandbox.id + "_UsrMyPage"
});

You'll also need to add ConfigurationEnums to the modules list. This means you'll add ConifurationEnums to the module/page you're using this code above from:

define("UsrMyCurrentPageV2", ["ConfigurationEnums"],
	function(ConfigurationEnums) {
 
    //....
 
}

Ryan

Thank you Ryan, this is what i am looking.

Fulgen Ninofranco,

Hi,

 id: theIdToEdit,Here which id we have to mention in the code.

praveen n,

Supply the Id of the record.

Show all comments

I have a process including approvals, where I want if the Creator of the object is in the approver role, then the object skips the approval process. How do I use System Actions to get the functional roles of the Creator, which I know how to get using Read data, and determine if any of them are the approver role?

 

 

 

 

 

 

Like 0

Like

4 comments

Dear Janine,

If your approver is a certain role you can create conditional flows to manage the process. Please see my example below:

http://prntscr.com/mqw6gs

1) Read record that must be approved http://prntscr.com/mqw6q0

2) Read user that created this record http://prntscr.com/mqw6ub

3) Count roles that he have (I tested this case for System Administrator role - he does not need to Approve) http://prntscr.com/mqw6xu

4) If the amount of roles is greater than 0 - perform task, if 0 9default flow) - make Approval. http://prntscr.com/mqw70y

Hope it helps!

Best regards,

Angela

Angela Reyes,

Perfect.  Thanks!

What if the current user is not the creator of the record and I specifically want to look up the roles of the Creator?

Angela Reyes,

I was able to get this working by reading the User from System administration object, instead of Users/roles (view).

Show all comments

Is it possible to translate this string, for example by setting it up manually from JavaScript?

Like 0

Like

3 comments

Hello Carlos,

Generally speaking, usually to translate some strings "Translation" section is used. You can read more about it in this article: https://academy.bpmonline.com/documents/base/7-13/how-identify-translat…



Other way to achieve it is to find the resource string in table  SysLocalizableValue and change it`s value directly in the database.



Also you can create a new replacing client module where change the element`s binding to new string. Example of such binding: http://prntscr.com/mqsibp



Best regards,

Alex

Alex_Tim,

Thanks. And what if the recommendation is set up by a formula and looks something like this?

"Number of something: " + [#Read number of something.First item of resulting collection.Number#]

 

Carlos Zaldivar Batista,

You can simply change the formula and save the business process as new version.

If the string is coming from the database you can change it by sql query or via business process element "modify data".

Regards,

Alex 

Show all comments

Hi Community,

How can I change the cell color of the grid in a detail just like this example below on how to change the text and background color of section records

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

Like 0

Like

7 comments

Hello Fulgen,

The idea is to connect your custom css styles to the desired detail. 

Here is the article which is describing it: https://academy.bpmonline.com/documents/technic-sdk/7-13/advanced-setti….



I recommend to test your styles in devtools before adding css to the schema. It is the most effective way to make cells look like you want .



Best regards,

Alex

Thank you alex,

What I need also is to put logic on every record to identify which color it will be. The same as overriding the prepareResponseCollectionItem method in section, It will be like the code below, but I need to apply it on detail records. How can I do that with detail? repareResponseCollectionItem: function(item) {

                // Calling the base method.
                this.callParent(arguments);
                item.customStyle = null;
                // Determining the order status.
                var running = item.get("Status");
                //If the status of the order is "In progress", the record style changes.
                if (running.value === OrderConfigurationConstants.Order.OrderStatus.Running) {
                    item.customStyle = {
                        // The text color is white.
                        "color": "white",
                        // The background color is green.
                        "background": "8ecb60"
                    };
                }
            }

 

Fulgen Ninofranco,

Actually, the grid details are using same method, so you should override it in detail schema. For example, I added this method to my detail  

http://prntscr.com/mpw1qy

and now items where quantity = 1 have red text color http://prntscr.com/mpw48t



Best regards,

Alex

Thank you Alex, overriding this method also works for detail grid.

Do you have any idea how to do this, one of our client requirements is to change only the color of status column, not all the columns in a row?

Hello!



We  have tried to apply this in editable detail. But colors are not changed when record is changed and saved.

Colors are applied only when the page is reopened or refreshed

 

What can we do with that?



Thank you!

Vladimir Sokolov,

The only way I could get that to work was a bit hacky. Add a saveDataRow method to override the existing one and do something like this (using Ext to reapply the styles). The code I used looked something like this (this is a shortened version)

saveDataRow: function(row, callback, scope) {
	// this returns something like { "background-color": "#080808" } etc
	var style = this.getRowStyle(row); 
 
	setTimeout(function() {
		Ext.select("div[id$=item-" + row.get(row.primaryColumnName) + "].grid-row-selected").applyStyles(style);
	}, 1000);
 
	this.mixins.ConfigurationGridUtilities.saveDataRow.apply(this, arguments);
},

The problem is that depending on how long for the row to get actually saved could make this not work. I plan on revisiting this to apply the styles once the update is complete (instead of when the save starts) boy replacing the callback arg passed, but sharing this now so maybe it gets you in the right direction.

Ryan

Show all comments

Hi community,

 

How we can filter the section records in client code

Like 0

Like

1 comments

Hello Fulgen,



To perform some filtration in section via client code you should note on "getFilters" method. Actually, you should create a new replacing client module for your section and override this method. 

The example can be found in "ActivitySectionV2" schema in "NUI" package.



Best regards,

Alex

Show all comments

I created a web service reference in GUI so I can call it from processes. I want to, depending on some settings, call a test version of this web service or a production version. Only their addresses differ. Is it possible to choose the address dynamically?

Like 0

Like

2 comments

Dear Carlos,

You can create two web services in the system, one with test version URL, other with productive version URL.

Create a system setting, based on which you will decide test or production. Other solution is to use an Exclusive Gateway element, which wold determine which pass to choose. Each of the passes would lead to one Web Services Call element. 

The diagram should look somewhat like this:

Regards,

Anastasia

Anastasia Botezat,

Thank you. I hoped that I could avoid adding two web services but if that's the only option then I'll have to do that.

Show all comments

Hello,

 

How can we commit menus which we create in workplace to SVN and how can column configurations in all sections be transfered to SVN also ?

 

Thanks,

Like 0

Like

1 comments

Dear Ayman,

Firstly, all personalized settings like column setup in sections and details are stored in the SysProfileData table. The [key] column stores the name of section/detail for grid setup. ContactId cloumn stores the Id of the user, whom settings belong.

The menus for workplaces and workplaces themselves are stored in the SysModuleInWorkplace and SysWorplace tables respectively. 

In order to transfer these settings you need to bind data to the package, which would be committed to SVN. Please see the following article on how to bind data within the system:

https://academy.bpmonline.com/documents/technic-sdk/7-13/binding-data-p…

Regarads,

Anastasia

Show all comments