SetWorkunitAppValue.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="SetWorkunitAppValue">
  5. <title><emphasis role="bold">SetWorkunitAppValue</emphasis></title>
  6. <para><emphasis role="bold">STD.System.Workunit.SetWorkunitAppValue
  7. <indexterm>
  8. <primary>STD.System.Workunit.SetWorkunitAppValue</primary>
  9. </indexterm> <indexterm>
  10. <primary>System.Workunit.SetWorkunitAppValue</primary>
  11. </indexterm> <indexterm>
  12. <primary>Workunit.SetWorkunitAppValue</primary>
  13. </indexterm> <indexterm>
  14. <primary>SetWorkunitAppValue</primary>
  15. </indexterm> (</emphasis> <emphasis>app, key, value,</emphasis> <emphasis
  16. role="bold"> [ </emphasis> <emphasis>overwrite</emphasis> <emphasis
  17. role="bold"> ])</emphasis></para>
  18. <informaltable colsep="1" frame="all" rowsep="1">
  19. <tgroup cols="2">
  20. <colspec colwidth="80.50pt" />
  21. <colspec />
  22. <tbody>
  23. <row>
  24. <entry><emphasis>app</emphasis></entry>
  25. <entry>The application name to set.</entry>
  26. </row>
  27. <row>
  28. <entry><emphasis>key</emphasis></entry>
  29. <entry>The name of the value to set.</entry>
  30. </row>
  31. <row>
  32. <entry><emphasis>value</emphasis></entry>
  33. <entry>The value to set.</entry>
  34. </row>
  35. <row>
  36. <entry><emphasis>overwrite</emphasis></entry>
  37. <entry>A boolean TRUE or FALSE flag indicating whether to allow the
  38. value to overwrite an existing value. Default is TRUE..</entry>
  39. </row>
  40. <row>
  41. <entry>Return:<emphasis> </emphasis></entry>
  42. <entry>SetWorkunitAppValue returns TRUE if the value was set
  43. successfully.</entry>
  44. </row>
  45. </tbody>
  46. </tgroup>
  47. </informaltable>
  48. <para>The <emphasis role="bold">SetWorkunitAppValue </emphasis>function sets
  49. an application value in the current workunit. It returns TRUE if the value
  50. was set successfully.</para>
  51. <para>Example:</para>
  52. <programlisting format="linespecific">IMPORT STD;
  53. STD.System.Workunit.SetWorkunitAppValue('MyApp','FirstName','Jim',TRUE);
  54. OUTPUT(STD.System.Workunit.WorkunitList(appvalues := 'MyApp/FirstName='Jim');
  55. //returns a list of workunits with app values where FirstName='Jim'</programlisting>
  56. <para>See Also: <link linkend="WorkunitList">WorkunitList</link></para>
  57. </sect1>