I have a window that is used as a search window within the application I'm working with, and I want to reuse it within a different part of the application. The problem I'm having, is that the window was that part of the selection criteria was designed as a code table instead of a drop down...
Does anyone know of a way to have text wrap on a command button? I have tried resizing it, and all that happens is the text gets cut off. I also did not see any properties listed that I could set to get the text wrap. I am using PB 7.0.
Daniel
Gary,
I do not know of a way you can make it appear without re-retrieving the datawindow. But, the one thing you can do is try coding something similar to the following in a post save or update event.
dw_1.Reset()
dw_1.Retrieve(retrieval arguments if needed)
This will reset the window and...
getjbb,
Try the following code and see what happens.
idw_child_CB_Set.InsertRow(0)
idw_child_CB_Set.SelectRow(0,FALSE)
idw_child_CB_Set.SetRow(1)
idw_child_CB_Set.SelectRow(1,TRUE)
By inserting a row into the datawindow and then setting the row, you should be able to have the row display the...
PBP,
Are these rows going to be inserted or retrieved onto the datawindow? If they are going to be inserted, I would place your code in either the insert or pre_insert event to set the edit mask for the column.
If they are going to be retrieved onto the datawindow, then place your code in the...
Keith,
If you are using a dddw there should be a selectionchanged event for the drop down datawindow. Put your code in the selection changed event instead of itemchanged and see if that does the trick.
Daniel
If this is happening when you are attempting to save the datawindow, try dw_1.Accepttext() and see if that solves your problem. From what you said, it sounds like this is happening when you insert a row. AcceptText() will place a value in the buffer and should stop this error from happening.
If you have a backup copy of the datawindow soemwhere remove it from the library list you are trying to migrate. If you are able to complete the migration, copy the datawindow back into the library you removed it from or recreate the datawindow all together.
Girls,
All your data can not be committing OK if you are getting the Datawindow error. I had this happen to me and the problem was the datatypes in the code being used for updating did not match the datatypes in the table in the database. So I would start there and see if that solves your...
Try using papersize = 13 and then playing with the left and right margins until you get it formatted the way that you want it. That is about the only other thing I can think of that you might be able to do. Either that or reformat your report so that it fits into one of the options.
Daniel32
ESC1N,
You can look at print.property in pb help. There it tells you how to specify the paper size that you want to have printed.
To print in landscape, you would code it as
dw_1.Object.DataWindow.Print.Orientation = 1 (Landscape)
There is a long list of all the paper sizes that you can...
Jon,
You can read about progress indicators right in PB Help, under progress bars. It tells you how to add them and the properties that go along with them.
Dan
Keith,
You should be able to use the same syntax for the computed field that you would for any other field in the datawindow.
dw_1.SetItem(ll_row, column_name or column_number, ls_value)
ll_row = the number of the row in the datawindow you want to set the value for
column_name = name of the...
Lue,
In your datawindow click on the Insert Menu on the toolbar and choose Control. Then scroll down until you find "Page n of n" and place it where you want on your datawindow. That should do exactly what you are looking for.
Dan
itguru,
Make sure the bitmap you have on the datawindow is in the PBfolder where are all your bitmaps are kept. If the bitmap is not in that folder it will not appear in the datawindow.
Valan,
I am going to assume that Packages has something to do with where you work? As for what datatype should a procedure return to be used as a datasource, it can return any datatype you want. It does not have to be one particular datatype for it to work correctly.
Dan
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.