createData() doesn't create system friendly url

Description

If using a displaySystemFU.cfm file in your type's webskin folder and you create an object using createData(), the friendly url does not get created.

This is especially a problem when importing a lot of data with a custom import script.


As a temporary workaround until this is fixed, you can do the following right after you create the object (note: You will need to know the objectid, so it's advisable to create the objectid manually using application.fapi.getuuid() and setting it to a local variable to send to both createData() and setSystemFU() ). Basically the only big thing here is that I'm calling setSystemFU() manually (I'm just prepping up some other code to help set the example):

// create my object
objectid = application.fapi.getuuid();
stFarcryParams = {
objectid = objectid,
title = "My Title",
etc...
}
oWidgets.createData(stProperties=stFarcryParams, user="Import Script");
application.fc.factory.farFU.setSystemFU(objectid=objectid,typeName="mhCustomType");

Environment

None

Activity

Show:

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 30, 2010 at 12:16 PM
Updated November 14, 2023 at 1:06 PM