CloneUserGridConfig

You can use this function for Optiva workflows.

Purpose

You can use this function to remove the existing grid configuration for the target user and copy the grid configuration from the source user.

Note: The function CloneUserGridConfig copies settings from both the FsGridLayoutWeb and FsGridViewWeb tables.

Syntax

public int CloneUserGridConfig(string targetUser, string sourceUser)

Return Value

The function returns the total number of rows copied to the target user.

Arguments

Part Description
targetUser The user who receives the copied grid configuration.
sourceUser The user whose grid configuration is copied.

Example

using System;
using Formation.Shared.Defs;
using System.Data;
using System.Collections;
using System.Xml;

class ActionScript : FcProcFuncSetEventWF
{
    public long wf_start()
    {
        MessageList("Start Copy");

        int copyCat = CloneUserGridConfig(@OBJECTKEY, "ADMIN");

        MessageList("Result: ", copyCat.ToString());

        return 111;
    }
}