Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean ProfilePrivateUserRead( )
The framework calls the ProfilePrivateUserRead method when a window is being created to allow applications to read application specific profile information.
The return value should be true if the profile information is successfully read, false otherwise.
Function: ProfilePrivateUserRead Actions ! Read last setting for the delivery/invoice address choice Call Profile.ValueStingGet( sSection, 'LastAddress', 'Delivery', sValue ) If sValue = 'Delivery' Set rbDelivery = TRUE Else if sValue = 'Invoice' Set rbInvoice = TRUEpublic new SalBoolean ProfilePrivateUserRead() { #region Local Variables SalString sSection = ""; SalString sFileName = ""; SalString sValue = ""; SalNumber i = 0; SalArray<SalString> sValueArrFore = new SalArray<SalString>(); SalArray<SalString> sValueArrBack = new SalArray<SalString>(); SalNumber nUpb = 0; #endregion #region Actions using (new SalContext(this)) { sSection = Ifs.Fnd.ApplicationForms.Int.QualifiedItemNameGet(this); i_bGridLines = false; i_bLegend = false;
// Read last setting for the Grid choice Ifs.Fnd.ApplicationForms.Var.Profile.ValueStringGet(sSection, "Grid",
"FALSE", ref ((cObjectRelationManager)this).sDummy); if (sDummy == "TRUE") { i_bGridLines = true; }
// Read last setting for the Legend choice Ifs.Fnd.ApplicationForms.Var.Profile.ValueStringGet(sSection, "Leged",
"FALSE", ref ((cObjectRelationManager)this).sDummy); if (sDummy == "TRUE") { i_bLegend = true; } return true; } #endregion }