1 / 71

CBG Workshop

CBG Workshop. Michael Zille. Uniface 9 What‘s new? Stichworte. UDE Unicode Farbverwaltung Widgets Dynamische Formlayout-Änderungen XML Reader/Writer Integrierter Serverpage-Editor Proc Statements/Functions Migration. A pplication P latform S uite. UDE - Enhancements.

klippert
Download Presentation

CBG Workshop

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CBG Workshop Michael Zille

  2. Uniface 9 What‘s new? Stichworte • UDE • Unicode • Farbverwaltung • Widgets • Dynamische Formlayout-Änderungen • XML Reader/Writer • Integrierter Serverpage-Editor • Proc Statements/Functions • Migration

  3. Application Platform Suite

  4. UDE - Enhancements

  5. UDE Look and Feel

  6. Multi Language Support (Unicode)

  7. Internationaler Standard für Zeichen bzw. Textelemente • Codebereiche • UCS-2, 16 Bit => 65.536 Zeichen • UCS-4, 32 Bit => 1.114.112 Zeichen derzeit zu etwa 9 % genutzt • Formate • UTF-8 • UTF-16 • ... • Unicode Consortium (seit 1991) • Zusammenarbeit mit ISO (Norm 10646)

  8. String literals • Messages • Menu text • Panel text • widgets

  9. Restrictions • No Unicode support for: • CHUI • Profile Characters • Uniface Names • Enhanced Printing in non-Windows platform • SQL (/workbench),database error messages, username and password • C, Tuxedo and Corba Call-In and Call-Out • UHTTP components • UPOPMAIL components • No Unicode sorting support • Supported Databases ORACLE, SOLID • „external Interfaces“ e.g. Filenames (supported on Windows, not on UNIX)

  10. $SYS_CHARSET Specify the character set used for communication with the operating system and for communication between Uniface and non-Uniface components, if they are not Unicode-based. $DEF_CHARSETdefault character set used for storing data in String fields with C packing code

  11. Support for Unicode and other Character Sets

  12. Multi Language Support „Special strings“ does not exist anymore

  13. ASCII (ASC) (font0) uses Unicode Range 0-7F • Extended ASCII (MUL) use Unicode Rage 0-ff(formerly font 0 & 1) • Full Character Set (FUL) –DEFAULT – is determind by $FULL_SYNTAX (font 0 to 7)

  14. Assignment Settings • [META_LANGUAGE] Section • $EXTENDED_SYNTAXSpecify which characters are allowed as extended characters (~& or ~@) in the field syntax definition. • $FULL_SYNTAXSpecify the allowed character set for the FUL shorthand code in the field syntax definition. • $META_IN_TRXSet the data storage format of String fields with the U* packing code to XML or TRX. • $WIDE_CHAR_BEHAVIORSpecify the character set used for String fields with the W packing code. • $GAIJIAllow the use of Japanese Gaiji characters.

  15. GUI - Enhancements

  16. Color Handling • Widgets • Color List • Color Box • Functions & Statements • $windowproperties($instancename)="backcolor=COLOR„ • $fieldproperties(fld_test)="backcolor=COLOR·;forecolor=COLOR" • colorbox/full • Properties • Windows Properties • Background Color • Widget Properties • Background Color • Foreground Color

  17. Enhanced Grid Widget • Supports Windows XP & Vista look and feel • Supports now the following widget types • Editbox • Checkbox • Picture • Command button • Spin Button • Drop-down List • Color box

  18. Enhanced Tree Widget Delete Items Re-order

  19. Dynamic Menus

  20. Dynamic Menus

  21. Dynamic Menus

  22. Proc Functions & Statements

  23. $paintedfieldproperties („myfield1“, „2“, „Xpos;Ypos“)= „Xpos=20;Ypos=15“ $paintedfieldproperties( Field , {PaintedOccurrence ,} { PropertyList} ) {=} PropertyValuesList PropertyValuesList = $paintedfieldproperties( Field , PaintedOccurrence {, Position | Size} )

  24. $paintedfieldproperties $paintedfieldproperties( Field , {PaintedOccurrence ,} { PropertyList} ) {=} PropertyValuesList PropertyValuesList = $paintedfieldproperties( Field , PaintedOccurrence {, Position | Size} ) $paintedfieldproperties (NAME, 4) = "xsize=3;ysize=25" $paintedfieldproperties (NAME.PROJECT.MYORG, "3;4;1") = "xsize+=2" $paintedfieldproperties(FIELD1,"1") = "XPos=50;YPos=50"

  25. New Statements file/directory management dircreate Creates the specified directory dirdelete Deletes the specified directory dirrename Renames the specified directory filecopy Copies the specified file to the target location filedelete Deletes the specified file filemove Moves the specified file to the target location filerename Renames the specified file within the same directory

  26. Use of Zip-files These instructions can create, read, and write zip files and directories. (Local) File I/O: (Local) directory management: (Local) file management: filedump fileload ldircreate ldirdelete ldirrename $ldir $ldirlist dircreate dirdelete dirrename lfilecopy lfiledelete lfiledump lfileload lfilemove lfilerename $lfileexists $lfileproperties filecopy filedelete filedump fileload filemove filerename lfiledump lfileload ZIP unlock flush lflush

  27. Use of Zip-files • Zip Path Assignments • Assignment file redirections now accept zip archive definitions. For example: [FILES] • ; All forms compiled into a ZIP archive • *.frm = myforms.zip:*.frm • ; All xml files are imported from the sources ZIP in the installation directory umeta.xml = usys:..\sources\sources.zip:umeta.xml • usource.xml = usys:..\sources\sources.zip:usource.xml • udefault.xml = usys:..\sources\sources.zip:udefault.xml

  28. $UDE Perform actions on Repository data, including compiling, exporting, importing, and converting. Syntax Export Repository data:    $ude ("export", ObjectType , ObjectProfile ,{ZipArchive :}Filename {, OptionList} ) Import data into the Repository:    $ude ("import", "misc",{ZipArchive :}Filename {,"", OptionList} ) Copy or convert data from one format to another:    $ude ("copy","misc", Source , Target {, OptionList} ) Compile development objects:    $ude ("compile", ObjectType , ObjectProfile {,"", OptionList} ) Note: $ude only works on the development Repository and requires a fully configured Uniface Development Environment and Repository to be available.

  29. entitycopy Copy data from one DBMS or file to another. Syntax entitycopy Source , Target {, OptionList} Description The entitycopy Proc statement copies or converts one or more entity occurrences from a source database or file to another. It enables you to incorporate the functionality provided by the /cpy command line switch into your Uniface application.

  30. Miscellaneous Functions • $procreturncontext • $itemcount • $string

  31. $procreturncontext Return context information about the return value of the previous Proc instruction. Syntax: $procreturncontext Description The $procreturncontext function provides additional information for Proc instructions that are typically involved in batch processing, such as copying data. For example, it can be used after entitycopy and $UDE.

  32. $procreturncontext

  33. $itemcount Return the number of items in a list. Syntax $itemcount ( List ) Description The $itemcount function enables you to determine how many items are in a list before processing each item. variables string vListe endvariables putlistitems/id vListe, order_id.order, total.order message/info "Number of Items: %%$itemcount(vListe)%%%"

  34. $string Return a string containing the replacement of each named XML entity in the input parameter string by the character represented by the entity. (XML entities are character mappings; they are not the same as Uniface entitites.) Syntax $string ( String ) In the following examples, FLD is a String field whose packing code is W*. vVar1=$string("XML has five predeclared entities.");0 xml entity vVar2=$string("They are: &lt;, &gt;, &amp;, %\ &apos;, and &quot;.");5 xml entities FLD=„%%vVar1%%%%%^%%vVar2%%%“ After executing this Proc, field FLD contains the following: XML has five predeclared entities. They are: <, >, &, ', and ".

  35. $string Variables string vVar1 string vVar2 string vFLD endvariables ;GrossBuchstaben vVar1=65 vVar2="" while(vVar1 < 91) vVar2="%%vVar2%%%&#%%vVar1;%%%" vVar1=vVar1+1 endwhile FLD_W=$string(vVar2) After executing this Proc, field FLD_W contains: ABCDEFGHIJKLMNOPQRSTUVWXYZ

More Related