It's not that complicated :)
Simply duplicate the DDDW inside the DW which will give it a name - do NOT change the name. They both represent the same column and any change in one of them will reflect in the other one.
While the first DDDW will be used for editing and filtering available...
The fool-proof and sure-fire way to get the classname of the parentwindow is to pass the name/classname of the window that opened the response window - using OpenWithParm(). If you are already passing a string argument to the response for another purpose, you could use a structure to pass...
The only columns we can set focus on are the ones in the Detail band.
---
PowerObject!
-----------------------------------------
http://Groups.Yahoo.com/group/PowerObject
PowerBuilder / PFC Developers' Group
Child windows cannot have ActiveTitleBar color. They always have the InactiveTitlebar color.
If you cannot use a Popup style window, you will have to create your own user-object simulating a window.
---
PowerObject!
-----------------------------------------...
Try declaring a user event and mapping it to:
. PBM_EnChange
. PBM_EnModified
. PBM_EnUpdate
and scripting the event appropriately. If none of the above event mappings work with EditMask, the only alternative would be to use the Other! event.
---
PowerObject...
You may like to tab to dw_2 when the user presses the Tab key from the last column on the last row of dw_1. Simply declare a user event ue_KeyDown and map it to PBM_DWNKey on dw_1 and script it as under:
IF key = KeyTab! THEN
//
IF GetRow() = RowCount() THEN
//
IF...
Try increasing the width of the column.
---
PowerObject!
-----------------------------------------
http://Groups.Yahoo.com/group/PowerObject
PowerBuilder / PFC Developers' Group
PSR reports are the ultimate in preserving the dw's formatting!
Some computed fields may lose their values and others may have their values re-evaluated. For instance, a computed field with an expression of Today() will NOT save the date the PSR was saved in the report. It would still display...
If you are trying to get a reference to the menu object for the window, use MenuID property of the window:
m_mymenu lm_Menu
//
lm_Menu = w_mywindow.MenuID
lm_Menu.m_File.m_New.Enabled = ...
---
PowerObject!
-----------------------------------------
http://Groups.Yahoo.com/group/PowerObject...
Switching the driver is not possible as this has to be done before the connection. You may instead use two transaction objects to make two connections and switch the transaction object doing dw.SetTransObject().
---
PowerObject!
-----------------------------------------...
It's not possible to save an entire/multi-page PSR to a graphic file using code. I thought you might have done a screenshot (Alt+PrintScreen) on a one-page report.
---
PowerObject!
Maybe, re-using the var is causing some trouble. Try declaring two dataWindowChild's:
dataWindowChild dwChild1, dwChild2
//
dw_detail.getchild("DDW_1",dwchild1)
dwchild1.setfilter("isnull(end_date)")
dwchild1.filter()
dw_detail.getchild("DDW_2",dwchild2)...
Have you inserted the PSR file itself into the dB or just an image of the PSR? If it is the PSR file itself, all you have to do is to assign the written-file to the dw (after you read it from the dB and successfully write to a temp file):
dw.DataObject = "C:\Documents and...
Var is a shortform for variable.
Typically, you would use the SELECTBLOB SQL statement to retrieve the file in a blob variable (the opposite way of how you inserted the PSR into the dB). See Help on low-level file functions such as FileRead(), FileWrite()... and the 'Examples' in them on how to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.