Siebel SPF template file update utility
View Patent ↗The present invention is directed to a Siebel SPF template file update utility. A method for updating a template file in accordance with an embodiment of the present invention includes: obtaining a template file, an existing row_id, and a target row_id; scanning the template file for section markers; locating an encoded length of a section of the template file using a section marker; decoding the encoded length of the section to obtain a section length; reading the section in its entirety using the section length; scanning the section to locate each instance of the existing row_id; replacing each instance of the existing row_id with the target row_id; and recalculating and re-encoding the section length. This process is repeated for each additional section marker.
1. A method for updating a template file, comprising:
obtaining a template file, an existing user row_id, and a target user row_id, wherein the template file is a Siebel Preference File (SPF) corresponding to an existing user;
scanning the template file for section markers;
locating an encoded length of a section of the template file using one of the section markers;
decoding the encoded length of the section to obtain a section length;
reading the section in its entirety using the section length;
scanning the section to locate each instance of the existing user row_id;
replacing each instance of the existing user row_id with the target user row_id; and
recalculating and re-encoding the section length.
2. The method of claim 1 , further comprising repeating the method for each additional section marker.
3. The method of claim 1 , wherein the template file forms part of a client relationship management application.
4. The method of claim 1 , wherein the template file is updated using a Java program.
5. A template updating utility, comprising:
a computer system comprising memory coupled to a processor;
a system for obtaining a template file, an existing user row_id, and a target user row_id, wherein the template file is a Siebel Preference File (SPF) corresponding to an existing user;
a system for scanning the template file for section markers;
a system for locating an encoded length of a section of the template file using one of the section markers;
a system for decoding the encoded length of the section to obtain a section length;
a system for reading the section in its entirety using the section length;
a system for scanning the section to locate each instance of the existing user row_id;
a system for replacing each instance of the existing user row_id with the target user row_id; and
a system for recalculating and re-encoding the section length.
6. The utility of claim 5 , wherein the utility is configured to update each section of the template file identified by a section marker.
7. The utility of claim 5 , wherein the template file forms part of a client relationship management application.
8. The utility of claim 5 , wherein the template file is updated using a Java program.