Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference

> ## checkProfileDataExists

> This procedure checks whether profile data exists for the current logged-in user for the specified profile type, code, or key. This procedure supports the passing of partial information, for example, only the profile type, or the type and code.

> Location: af\app\afpromngrp.i

> Parameters:

> `INPUT pcProfileTypeCode AS CHARACTER`

> The profile type code.

> `INPUT pcProfileCode AS CHARACTER`

> The profile code.

> `INPUT pcProfileDataKey AS CHARACTER`

> The profile data key.

> `INPUT plCheckPermanentOnly AS LOGICAL`

> Check permanent data only flag, default = YES.

> `INPUT plCheckCacheOnly AS LOGICAL`

> Check client cache only, default = NO.

> `OUTPUT plExists AS LOGICAL`

> Does the profile data exist.

> Notes:

> - If the `plCheckPermanentOnly` flag is set to `NO` and there are database entries that exist for the session only, then the procedure returns `TRUE`.
> - If the `plCheckCacheOnly` is set to `YES`, then the procedure checks the temp-table, rather than checking both the temp-table and the database.
> Examples: See the `initializeObject` procedure in `ry\obj\rydynprf1v.w`.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095