Sw4   >   About   >   Version 2009-10-10

Version 2009-10-10

This is a minor release with various bug fixes and minor enhancements.

  1. Lookup List More Button - Each time the user clicks the More button, the lookup list scroll to the end to give visual feedback to the user that more records have been fetched.
  2. Query Builder - Enhanced duplicate query prompt and methods to allow the user to select a different target library for the duplicate query.
  3. $isNumber - Now using the isnumber() function. This also solves the localization problem with countries that you , comma for the decimal character.
  4. Format Phone Number - Added an enhancement to oFormatPhoneNumber to set a default prefix. This allows user to just enter the last 4 digits of a North American phone number with the area code and prefix automatically being added.
  5. Programmer Workbench VCS Bugs - Fixed some VCS related bugs that were causing false error messages.
  6. Prompt for Input - Changes made for longer labels getting cut off. There is still a problem with Mac OS X calculating the text width in OS 4, that has been fixed in OS 5.
  7. Pushbuttons Spacing - Fixed a small bug that was causing incorrect positioning of pushbuttons in wPushbuttons.
  8. Toolbar Buttons - Fixed a small bug with the $removeButton code.
  9. FileOps External Unicode Change - Changed $readfile to $readcharacter(kUniTypeAuto,String) in several location. oOpenLibraries needs to be recopied from swBase4 to your application's main library. (See update notes below)
  10. Blowfish External Changed from $decrypt to $decryptchar for Omnis 5 blowfish object.
  11. Web Security Fixed encrypt/decrypt security code using bintohex() and binfromhex() functions.
  12. Email Send Added a second SMTPSend attempt if the first attempt fails. Some ISPs automatically reject the first attempt to reduce spam.

To update to this new release:

  1. Quit Omnis Studio.
  2. Backup your application!
  3. Replace the studioworks folder.
  4. Open your application.
  5. Copy the oOpenLibraries object from swBase4/Tools to your main library. (Required for Omnis Studio 5.0)
  6. If you hit any snags, email me a zip of your application with instructions on when and where you are running into problems.
Each library and the modifications in the release are listed below. The modifications are compiled from the @MOD tag comments found in the methods of the classes in the library.

myAppMain

oOpenLibraries/retPathStudioWorksFolder (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

mySysAdmin

No modifications

swBase4

oEmail/$sendEmail (2009-10-06 Doug K per Mike M.)
If first SMTPSend fails, give it one more try.

oEncryptDecrypt/$decryptList (2009-10-07 Doug K.)
Changed from $decrypt to $decryptchar for Omnis 5 blowfish object.

oEncryptDecrypt/$decryptString (2009-10-07 Doug K.)
Changed from $decrypt to $decryptchar for Omnis 5 blowfish object.

oEncryptDecrypt/$encryptList (2009-10-07 Doug K.)
Changed from $encrypt to $encryptchar for Omnis 5 blowfish object.

oEncryptDecrypt/$encryptString (2009-10-07 Doug K.)
Changed from $encrypt to $encryptchar for Omnis 5 blowfish object.

oExportImportData/$importReturnList (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

oFunctions/$isNumber (2009-10-01 Doug K.)
Replaced old method code with the new isnumber() function. This also solves the localization problem with German decimal separator as noted by Matthias H.

oMetaDataQueryCol_Model/$updateQueryCols_addschemacolname (2009-08-27 Doug K.)
Bug fix. Set rClass in the loop.

oMetaDataQueryCol_Model/$updateQueryCols_moveschemacolname (2009-08-27 Doug K.)
Bug fix. Set rClass in the loop.

oOpenLibraries/retPathStudioWorksFolder (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

oPaths_StudioWorks/$:PathStudioWorksFolder (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

oPaths_StudioWorks/$retStartupItemsFilePropertiesList (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

oPrimaryKeys/$getNextPrimaryKey (2009-10-01 Doug K per Andy H.)
Added an isclear(pfRetNextKey) test if FlagOK=kTrue, just to be sure a valid pkey value is returned.

oStartupSettingsFile/loadStartupItemsFilePropertiesList (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

wLogFileViewer/loadLogFileContents (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

wSQLQueryBuilder/$duplicateClass (2009-10-02 Doug K per Mike M request.)
Enhanced method to allow duplicate a query to a different library.

wSQLQueryBuilder/$duplicateClass_continue (2009-10-02 Doug K per Mike M request.)
Added method to allow duplicate a query to a different library.

swDocs4

oPaths/$:PathStudioWorksFolder (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

oPaths/$retStartupItemsFilePropertiesList (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,String). $readfile into string breaks in Omnis Studio 5.

swGui4

oFieldHandlerLookupTypeAhead/$fetchMore (2009-10-02 Doug K.)
Send bScrollToEndofList=kTrue to setLookupListField method.

oFieldHandlerLookupTypeAhead/event_evMouseDown_LookupsList (2009-10-01 Doug K per Chuck M.)
$setLookup is being called twice when the user clicks on the lookup list. To avoid the double call, set ibModified in this handler to kFalse after calling 'selectLookupListFieldLine'.

oFieldHandlerLookupTypeAhead/setLookupListField (2009-08-08 Doug K.)
Added helpful OK message with debug hint if the lookup list window reference hasn't been set.

oFormatPhoneNumber/$:DefaultPrefix (2009-08-29 Doug K.)
Added telphone prefix property

oFormatPhoneNumber/$formatPhoneNumber (2009-08-29 Doug K.)
Added code to allow use of a telphone prefix.

oNavigationMenu_Model/$updateIcon (2009-10-07 Doug K.)
Modified code to search for pos(low(pNewIconName) and pos(low(pOldIconName) so that it has better chance of catching wininstids that need their icon recalculated.

oWindowInstancesListEditor_Controller/$loadData (2009-08-21 Josh L.)
Save any changed data before loading new data. Loading new data will not change anything in the lists, and to do this, I have to make sure all previous changes are saved.

oWindowInstances_Model/$rebuildData (2009-08-21 Josh L.)
rebuilding the window instances list now only takes out the lines that are not in the rebuilt list and adds in new lines.

wEdit_abstract/$control (2009-08-07 Josh L. as per Chuck M.)
Tested if the mode is view, then keypresses and mouse-clicks shouldn't set the window as modified ... mainly because they shouldn't modify the data.

wList_autoconfig/$attachHeadedListEventsObserver (2009-08-28 Doug K.)
Added method to allow others to attach themselves as observers directly to the headed list events.

wLookupList/$set (2009-10-02 Doug K per Chuck M)
Added parameter pbScrollToEndOfList and code to execute this. This is used when the user clicks the "More" button.

wPromptInput/$:PreferredHeight (2009-08-27 Josh L.)
Add instance var to keep spacer height the same across methods and provide a single place to change it according to application.

wPromptInput/_addFieldAtPos (2009-08-27 Josh L.)
Add instance var to keep spacer height the same across methods and provide a single place to change it according to application.

wPromptInput/addFieldsAndLabels (2009-08-20 Josh L.)
I noticed there were some prompts with very long labels which were getting cut off. This precalculates the label width and field left so the prompt displays correctly NOTE: This only works if the template label and field have a valid font and size > 0. (On my test mac this is not the case so it uses the template label width) Added Note: Tested this in Omnis Studio 5 and the $wintextwidth function now works with Mac OS X theme fonts.

wPromptInput/addFieldsAndLabels (2009-08-27 Josh L.)
Add instance var to keep spacer height the same across methods and provide a single place to change it according to application.

wPushbuttons/$resize (2009-10-03 Doug K.)
Bug fix. Changed 'type' to 'objtype' to correct spacing problem.

wToolbar/$#About (2009-10-01 Doug K.)
Moved IconWidth local variable to class variable and renamed as ckIconWidth.

wToolbar/$#About (2009-10-01 Doug K.)
Moved iSpacerWidth instance variable to class variable and renamed as ckSpacerWidth.

wToolbar/$#About (2009-10-01 Doug K.)
Created class variable ckGap=16 to replace place in code where '16' is hard coded in.

wToolbar/$addButton (2009-10-06 Doug K.)
Set the icon to k16x16. In Omnis Studio 5 one of the icons was showing up as 32x32.

wToolbar/$removeButton (2009-10-01 Doug K per Andy H)
Recalc iCurrWidth when removing a button.

wWindowInstancesListEditor_View/$event (2009-08-24 Josh L.)
Commented out saving the Menu Data because I don't understand why we need to save that after we rebuild the Window Data.

swIcons4

No modifications

swRefs4

No modifications

swReports4

No modifications

swWeb4

oHTMLSecurity/decryptSessionID (2009-10-03 Doug K.)
Added binfromhex() function so that CGIDecode actually works.

oHTMLSecurity/retEncryptedSessionID (2009-10-03 Doug K.)
Added bintohex() function so that CGIEncode actually works.

oHTMLTemplates/$retFileText (2009-10-03 Doug K.)
Changed FileOp.$readfile to $readcharacter(kUniTypeAuto,HTML). $readfile into string breaks in Omnis Studio 5.