Hi Team,

 

How to provide the Delete all and Select options in detail menu.

 

Can any one help with this?

 

 

 

Like 0

Like

1 comments

Hello Akshit,

To select all records in a detail, you just need to call this:

this.setSelectAllMode();

This will select all records in the detail. Once all records are selected, you should just be able to use the Delete menu option to delete all selected records.

Ryan

Show all comments

Hi all!

I have an issue that I'm hoping someone has a simple answer for.

I have a BP that is set to run in the background (it's long running).  It iterates through many items in a script task and then executes a sub-process passing in parameters for that item.  I'm getting the user connection in both BPs using Get("UserConnection").  Both processes run fine if the parent process is set to run in the background, but the subprocess is not.  If I try to also run the subprocess in the background, it will execute the process but it will just get stuck with a status of "Running".  None of the steps show as being executed in the execution diagram.  It's as if the process get's scheduled, but no work actually gets done.

Is there some other way I should be executing the sub-process or fetching the user connection?

Like 0

Like

3 comments

Small update here.  There seems to be no difference between getting UserConnection by referencing it directly or by using  Get<UserConnection>("UserConnection").  Works fine either way, however, I still cannot call a BP set to run in the background from the script task.  Still shows "Running" in the log, but not steps are executed.  Anyone have any thoughts?

For those that may find there way to this post, I think I found the issue.  You need to check the "Serialize in DB" checkbox as well as the "Run process in background" checkbox.



This did expose a bug, however.  If you call the process client-side using the process UID, it runs fine, but if you use the name, it will not run in the background.  See sample code below:



           var config = {

                // Process name

                //sysProcessName: "UsrProcessName",

                sysProcessId: "ee018aff-1b7f-4713-993a-61b1f065df51",

                // parameters process                

                parameters: parameters

            };

            // run process

            Terrasoft.ProcessModuleUtilities.executeProcess(config);    



The above will work as shown, but if I comment out sysProcessId and uncomment sysProcessName, the UI will lock up and show processing until the main process completes.  In other words, it effectively ignores the setting to run in the background.

Jeremy Couzens,

That is interesting and good to know. Thanks for posting this.

Show all comments

Hi team,

 

According to this article : https://academy.creatio.com/docs/user/platform_basics/user_interface/command_line/the_command_line

"To include certain section’s data in global search results, open the section wizard for the necessary section and select the [ Indexing for full-text search ] checkbox. Learn more about indexing in the “Configure section properties” article."

 

But I can't see this checkbox on the development instance(7.x latest version) to include the custom sections in global search.

 

But in the trial instance (8.x version) when I open any section using section wizard the check box "Indexing for full-text search" is available.

 

Can you please tell us how can we include our custom sections in global search?

 

Many thanks!

 

Like 0

Like

1 comments

Hello Akshit,

The checkbox will only appear if the global search service is set up for the local environment. See https://academy.creatio.com/docs/user/on_site_deployment/containerized_…

Ryan

Show all comments

Hello everyone,

i got some trouble here and the message is :

Server Error in '/0' Application.
Instance of workspace item with type "Terrasoft.Configuration.TgAcceptanceCoverageAndObjectSchema" cannot be obtained from server metadata
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: Terrasoft.Common.NullOrEmptyException: Instance of workspace item with type "Terrasoft.Configuration.TgAcceptanceCoverageAndObjectSchema" cannot be obtained from server metadata
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[NullOrEmptyException: Instance of workspace item with type "Terrasoft.Configuration.TgAcceptanceCoverageAndObjectSchema" cannot be obtained from server metadata]
   Terrasoft.Core.Entities.EntitySchemaManager.InitializeSchema(ISchemaManagerItem schemaManagerItem, Assembly assembly) +221
   Terrasoft.Core.SchemaManagerItem`1.get_Instance() +208
   Terrasoft.Core.Manager`2.GetInstanceByUId(Guid uid) +96
   Terrasoft.Configuration.ConfigurationSectionHelper.InnerGetEntitiesStructure(UserConnection userConnection, IEnumerable`1 entityNames) +4871
   Terrasoft.Configuration.ConfigurationSectionHelper.GetConfigurationStructuresScripts(UserConnection userConnection) +80
   Terrasoft.Configuration.ConfigurationSectionHelper.GetConfigurationScript(UserConnection userConnection) +202
   Terrasoft.WebApp.Nui.ViewModuleHelper.CreateModulesConfigScript(UserConnection userConnection, HttpResponseBase response) +160
   Terrasoft.WebApp.Nui.ViewModule.SetupModulesConfig() +76
   Terrasoft.WebApp.Nui.ViewModule.Page_Load(Object sender, EventArgs e) +171
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082

Do you have any idea guys for solve this error? thank you

Like 5

Like

0 comments
Show all comments

Hi Team,

 

I am following this article here

 

sysadmin = pg_akshitsaxena

password = pg_syspassword

 

public user = pg_newpublicuser

passwrod = pg_password

 

Under the section "Restore PostgreSQL Database" at point 4 when I put the password for sysadmin then it doesn't show me any error but when I perform point no5. then it gives me this error

 

Can anyone help me with this please?

 

 

Like 0

Like

1 comments

Hi Akshit,

 

The issue is with the database user permissions to login to the database. This error message should be addressed to the database administrator.

 

Best regards,

Oscar

Show all comments

Hi Team,

 

I want to set the value of current user logged in to the system in a lookup of contact of a section and as soon as the New button for new record is clicked, the lookup should be already auto-filled with the current user contact name.

 

 I tried using this.set("UsrUserName",CURRENT_USER_CONTACT); but it is not working.Please help me achieve this.

 

Thanks,

 Sarika

Like 0

Like

2 comments
Best reply

Hi Sarika,

 

UsrCurrentContact below is a lookup column referencing the Contacts object:

onEntityInitialized: function() {
				this.callParent(arguments);
				this.set("UsrCurrentContact", Terrasoft.SysValue.CURRENT_USER_CONTACT);
			},

As a result the value is set for the column once the page is opened.

 

Best regards,

Oscar

Hi Sarika,

 

UsrCurrentContact below is a lookup column referencing the Contacts object:

onEntityInitialized: function() {
				this.callParent(arguments);
				this.set("UsrCurrentContact", Terrasoft.SysValue.CURRENT_USER_CONTACT);
			},

As a result the value is set for the column once the page is opened.

 

Best regards,

Oscar

Hi Oscar,

 

Thanks for the response. It works fine

Show all comments

Hi Team ,

 

I'm looking for a solution for a scenario where a user double clicks on the record of a detail with column setup as list view, the record of the connected section should open instead of that detail record page.

 

Please help me achieve this.

 

Many Thanks,

 

Sarika

Like 0

Like

2 comments
Best reply

Hi Sarika,

To do this would would add some code to the detail to change what happens when the row is double clicked. First, add the NetworkUtilities to the modules list at the top of the detail schema, something like this:

define("UsrMyDetail", ["NetworkUtilities"], function(NetworkUtilities) {

Something like this:

editRecord: function(primaryColumnValue) {
    var row = this.getActiveRow(),
        entity = row.get("UsrMyEntityColumn");
 
    if (Ext.isEmpty(entity)) {
        return;
    }
 
    var hash = NetworkUtilities.getEntityUrl("UsrMyEntityName", entity.value);
    this.sandbox.publish("PushHistoryState", {hash: hash});    
}

Ryan

Hi Sarika,

To do this would would add some code to the detail to change what happens when the row is double clicked. First, add the NetworkUtilities to the modules list at the top of the detail schema, something like this:

define("UsrMyDetail", ["NetworkUtilities"], function(NetworkUtilities) {

Something like this:

editRecord: function(primaryColumnValue) {
    var row = this.getActiveRow(),
        entity = row.get("UsrMyEntityColumn");
 
    if (Ext.isEmpty(entity)) {
        return;
    }
 
    var hash = NetworkUtilities.getEntityUrl("UsrMyEntityName", entity.value);
    this.sandbox.publish("PushHistoryState", {hash: hash});    
}

Ryan

Hi Ryan,

 

Thanks for the solution, I tried the below given code and it is working as expected. 

 

 

Best Regards,

 

Sarika 

 

 

 

 

Show all comments

Hi Community,

 

I am trying to implement JIT when a user is not present. But by default it is creating a user as "Company Employee". Any suggestions how I can identify and create either Company Employee or Portal user based on the response that has been received in the SAML token.

I have followed the following two articles:

  1. Single Sign-On via ADFS
  2. Just-In-Time User Provisioning

 

Thanks,

Sourav Kumar Samal

Like 2

Like

3 comments

Hi All,

 

Can anyone answer on this?

 

Thanks,

Sourav

Dear Sourav, 



I would suggest you to carefully check the web.config file located in the root folder of Creatio. 

In this file you can find the list of login providers (the place where you enabling JIT by the guide):



        <provider name="SsoAuthProvider" type="Terrasoft.WebApp.Loader.Authentication.SSO.SsoAuthProvider, Terrasoft.WebApp.Loader">

          <parameters>

            <add name="UserType" value="General" />

            <add name="UseJit" value="false" />

          </parameters>

        </provider>

        <provider name="SSPSsoAuthProvider" type="Terrasoft.WebApp.Loader.Authentication.SSO.SsoAuthProvider, Terrasoft.WebApp.Loader">

          <parameters>

            <add name="UserType" value="SSP" />

          </parameters>



If you want to enable JIT for portal user you need to make sure that key <add name="UseJit" value="false" /> is added to the block related to the "SSPSsoAuthProvider"

so it looks like:

    <provider name="SSPSsoAuthProvider" type="Terrasoft.WebApp.Loader.Authentication.SSO.SsoAuthProvider, Terrasoft.WebApp.Loader">

          <parameters>

            <add name="UserType" value="SSP" />

            <add name="UseJit" value="true" />

          </parameters>



After that please make sure that SspLogin.aspx is specified in all keys instead of NuiLogin.aspx to make sure that user will get a proper portal cookie in case if you want to use a Service Provider initiated SSO flow to create portal users. 

Also please note that in this case ordinary company employees will have to login via direct link only or use the link to NuiLogin.aspx module if they want to use SSO as well. 



Kind regards,

Roman

Roman Brown,

Does this mean we can only use Jit either for Portal User or for Company Employee user?

 

Regards,

Sourav

Show all comments

Hi,

 

while filling a record in detail I am getting the below error 

What does this error means?

 

When I tried compiling the site I again get the below error

What does this error means?

 

I don't see any linking between these errors. Can anyone please help?

 

Many thanks!

Like 0

Like

2 comments

The 2nd error is resolved I figured out the reason is that the field name(code) is same as the section name(code).



But I didn't find out the reason of 1st error. 

Hi,

 

As for the first error message, find this Id from the error message in the UI sources in the developer console F12 -> Sources tab -> Search and see which object is returned in ViewModule.aspx when searching for the Id from the error message (like here https://community.creatio.com/questions/how-overcome-item-unique-identi…). Then you need to remove the SysModule record from the system that is related to the object found in the UI sources.

 

Best regards,

Oscar

Show all comments

We have concerns about security of lodash module used in client app. As we understand, version 4.17.19 is used in 7.18.5. Do you plan to update it, or can we have an instruction on how to do so. Thanks in advance!

https://www.ibm.com/support/pages/security-bulletin-lodash-versions-prior-41721-vulnerability-powerha#:~:text=Vulnerability%20Details&text=js%20lodash%20module%20could%20allow,arbitrary%20commands%20on%20the%20system.

Like 0

Like

0 comments
Show all comments