On Dynamics 1.1ASP3, calling getObjectName() behaves sligthly different
according to the session type in which it is called.
For example, for a static SDO, it returns "customerfullo" when used in an
ICFDev session, and rather "<module-directory>/customerfullo" within an
ICFRuntime session under a WebClient configuration.
Is this the expected behaviour?
Is there any other property, which I can use to get exactly the same object
name no matter what the session type is?
Thanks,
Ariel.-
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
This should be reported as a bug, the ObjectName is intended as a unique
reference within the container and should not change with session types.
Is this consistent for all objects?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 7:46 PM
To: ICF Dev
Subject: getObjectName in different session types
On Dynamics 1.1ASP3, calling getObjectName() behaves sligthly different
according to the session type in which it is called.
For example, for a static SDO, it returns "customerfullo" when used in an
ICFDev session, and rather "/customerfullo" within an
ICFRuntime session under a WebClient configuration.
Is this the expected behaviour?
Is there any other property, which I can use to get exactly the same object
name no matter what the session type is?
Thanks,
Ariel.-
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
HÃ¥vard,
I have only seen this happening with static SDO's. I have not checked this
on other static objects.
Dynamic objects do not have this behaviour.
-Original Message-
Sent: Thursday, October 24, 2002 9:05 PM
To: dev@icf.possenet.org; ICF Dev
Subject: RE: getObjectName in different session types
This should be reported as a bug, the ObjectName is intended as a unique
reference within the container and should not change with session types.
Is this consistent for all objects?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 7:46 PM
To: ICF Dev
Subject: getObjectName in different session types
On Dynamics 1.1ASP3, calling getObjectName() behaves sligthly different
according to the session type in which it is called.
For example, for a static SDO, it returns "customerfullo" when used in an
ICFDev session, and rather "/customerfullo" within an
ICFRuntime session under a WebClient configuration.
Is this the expected behaviour?
Is there any other property, which I can use to get exactly the same object
name no matter what the session type is?
Thanks,
Ariel.-
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
Does the LogicalObjectName property have the same problem? (The
LogicalObjectName is the name of the object in the Repository, so it cannot
be reliably used as a unique reference within a container)
I assume these SDOs are stored in the Repository?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 9:02 PM
To: dev@icf.possenet.org
Subject: RE: getObjectName in different session types
HÃ¥vard,
I have only seen this happening with static SDO's. I have not checked this
on other static objects.
Dynamic objects do not have this behaviour.
-Original Message-
Sent: Thursday, October 24, 2002 9:05 PM
To: dev@icf.possenet.org; ICF Dev
Subject: RE: getObjectName in different session types
This should be reported as a bug, the ObjectName is intended as a unique
reference within the container and should not change with session types.
Is this consistent for all objects?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 7:46 PM
To: ICF Dev
Subject: getObjectName in different session types
On Dynamics 1.1ASP3, calling getObjectName() behaves sligthly different
according to the session type in which it is called.
For example, for a static SDO, it returns "customerfullo" when used in an
ICFDev session, and rather "/customerfullo" within an
ICFRuntime session under a WebClient configuration.
Is this the expected behaviour?
Is there any other property, which I can use to get exactly the same object
name no matter what the session type is?
Thanks,
Ariel.-
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
LogicalObjectName just returns an empty string for the static SDO's, both in
WebClient and local session.
The static SDOs seemed to be stored in repository, as I can open them from
the "Open Object" option and query them using the ROMT.
I have checked that this doesn't happen with static SDV. Function
getObjectName() behaves correctly (same name) in both session types for
static SDV.
-Original Message-
Sent: Thursday, October 24, 2002 10:13 PM
To: dev@icf.possenet.org
Subject: RE: getObjectName in different session types
Does the LogicalObjectName property have the same problem? (The
LogicalObjectName is the name of the object in the Repository, so it cannot
be reliably used as a unique reference within a container)
I assume these SDOs are stored in the Repository?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 9:02 PM
To: dev@icf.possenet.org
Subject: RE: getObjectName in different session types
HÃ¥vard,
I have only seen this happening with static SDO's. I have not checked this
on other static objects.
Dynamic objects do not have this behaviour.
-Original Message-
Sent: Thursday, October 24, 2002 9:05 PM
To: dev@icf.possenet.org; ICF Dev
Subject: RE: getObjectName in different session types
This should be reported as a bug, the ObjectName is intended as a unique
reference within the container and should not change with session types.
Is this consistent for all objects?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 7:46 PM
To: ICF Dev
Subject: getObjectName in different session types
On Dynamics 1.1ASP3, calling getObjectName() behaves sligthly different
according to the session type in which it is called.
For example, for a static SDO, it returns "customerfullo" when used in an
ICFDev session, and rather "/customerfullo" within an
ICFRuntime session under a WebClient configuration.
Is this the expected behaviour?
Is there any other property, which I can use to get exactly the same object
name no matter what the session type is?
Thanks,
Ariel.-
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
Ariel,
The problem seem to be in containr.p constructObject.
IF INDEX(pcProcName,"_cl":U) NE 0 THEN
DO:
DYNAMIC-FUNCTION('setObjectName':U IN phObject,
SUBSTR(ENTRY(1, pcProcName, ".":U),1,INDEX(pcProcName,"_cl":U) -
1)).
END. /* END DO IF _cl */
I have not verifeied that this is the problem, but this logic fails to
remove the directory. It is important that the '_cl' is removed though. The
logic to set the default objectname is in the main block of smart.i.
You can of course just fix this directly in constructObject, but in order to
isolate your fix from upgrades you should override constructObject in
customcontainr.p or, perhaps better, setObjectName in customdata.p as it is
set through the function.
I think that you should be able to rely on this the way you try to, so you
should enter an issue (or call support). I suspect the name also is
different when running dynamic data objects.
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 9:27 PM
To: dev@icf.possenet.org
Subject: RE: getObjectName in different session types
LogicalObjectName just returns an empty string for the static SDO's, both in
WebClient and local session.
The static SDOs seemed to be stored in repository, as I can open them from
the "Open Object" option and query them using the ROMT.
I have checked that this doesn't happen with static SDV. Function
getObjectName() behaves correctly (same name) in both session types for
static SDV.
-Original Message-
Sent: Thursday, October 24, 2002 10:13 PM
To: dev@icf.possenet.org
Subject: RE: getObjectName in different session types
Does the LogicalObjectName property have the same problem? (The
LogicalObjectName is the name of the object in the Repository, so it cannot
be reliably used as a unique reference within a container)
I assume these SDOs are stored in the Repository?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 9:02 PM
To: dev@icf.possenet.org
Subject: RE: getObjectName in different session types
HÃ¥vard,
I have only seen this happening with static SDO's. I have not checked this
on other static objects.
Dynamic objects do not have this behaviour.
-Original Message-
Sent: Thursday, October 24, 2002 9:05 PM
To: dev@icf.possenet.org; ICF Dev
Subject: RE: getObjectName in different session types
This should be reported as a bug, the ObjectName is intended as a unique
reference within the container and should not change with session types.
Is this consistent for all objects?
HÃ¥vard
-Original Message-
Sent: Thursday, October 24, 2002 7:46 PM
To: ICF Dev
Subject: getObjectName in different session types
On Dynamics 1.1ASP3, calling getObjectName() behaves sligthly different
according to the session type in which it is called.
For example, for a static SDO, it returns "customerfullo" when used in an
ICFDev session, and rather "/customerfullo" within an
ICFRuntime session under a WebClient configuration.
Is this the expected behaviour?
Is there any other property, which I can use to get exactly the same object
name no matter what the session type is?
Thanks,
Ariel.-
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org
To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org
For additional commands, e-mail: dev-help@icf.possenet.org