Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all 2935 articles
Browse latest View live

the cursor in richtext field doesn't move with letter i type -in right to left language?

$
0
0

for richtext column field in datawindow

when i typing with English the cursor always is at the position where i type

but in Arabic(right to left language)

the cursor is always fixed at 1st right  position make confusion to user who is typing ??

 

 

for exemple when i type hello after typing "o" i get ( | symbolise my cursor ) hello|

as shown the cursor is after char. "o"

 

but in Arabic when I type some chars the cursor is still at first char.

سيد |

 

as shown | is at first char i wrote not at last one??

 


Creating COM/COM+ component server in PowerBuilder classic 12 and above

$
0
0

We are in process of migrating our Power Builder classic code from PB11.5 to 
PB12.6 ,

We have a PB Classic application which builds into COM/COM+ DLL's , being
exposed to and called by third party applications.

I see the functionality of creation of COM/COM+ DLL's is removed in PB12+ ,
This is hampering us from migrating from PB11.5 to PB12.6

Can anyone please suggest an alternative to this.

the cursor in rich text edit doesn't move with char i type?

$
0
0

for richtext column field in datawindow

when i typing with English the cursor always is at the position where i type

but in Arabic(right to left language)

the cursor is always fixed at 1st right  position make confusion to user who is typing ??

 

 

for exemple when i type hello after typing "o" i get ( | symbolise my cursor ) hello|

as shown the cursor is after char. "o"

 

but in Arabic when I type some chars the cursor is still at first char.

سيد |

 

as shown | is at first char i wrote not at last one??

 

 

 

 

 

 

 

Future of PowerBuilder webcast

I Made the ENTER key act as TAB key BUT???

$
0
0

I Made the ENTER key act as TAB key

I defined a user event to correspond with the pbm_dwnprocessenter event on a datawindow

then write

 

Send(Handle(this),256,9,Long(0,0))

RETURN 1

 

it works fine except when there are a field(field 1)  while the next field(field2) is  of type string or of type nvarchar(150) or greater

 

if the user is at field 1 when he  tab  then he goes  to field 2 but

if the user is at field 1 when he  enter then he goes to field 3(the field after field 2) again if field 3 is string or nvarchar(150) the user goes to field 4 ???

Migration of PB project from from 12.5 to 12.6 having PUSHOK Source Control.

$
0
0

Hi,

 

I want to migrate my project from PB 12.5 to PB 12.6. My project uses PushOK Source Control to connect to SVN. In my project, we release code each quarterly. We want to release this month with PB 12.6. We maintain each release codes in SVN. For example, currently we are in 15.4 release and next month we will release 16.1. So we will store both 15.4 release and 16.1 release code in SVN. Now my question.

 

What steps needs to be performed so that we can migrate our 15.4 release code from PB 12.5 to 12.6 in such a way that if we want to see the history of 12.6 object from SVN it shows all previous history information besides of its migration. Some one told me that. Do the following steps.

Open 15.4 Project in PB 12.5 environment.

Check out the target (All objects from SVN)

Now open the target in PB 12.6 environment

Migrate the code.

Setup the PushOK with new branch in SVN

Check in the target (All objects).

 

This way SVN will not loose any history information. Does this step correct.

 

Please help.

Powerbuilder 12.6 eval ??

$
0
0

I have been evaluating PB 12.6  (.net) and have a couple of issues.

 

1) Starting up the IDE the program crashes.  The workaround I use is to create a new solution and than add the target from the original.

 

2) Saving in the DW painter is taking up to 30 seconds.  This would make my project very difficult to complete

 

3) Tabular data window with 200 + columns the DW painter is nor responsive at all. And when click on an item it displays the focus above what I clicked on.  This will also make my project very difficult using powerbuilder..

 

I am running powerbuilder in an oracle VBOX virtual machine. I have 4 CPU's assigned with 16GB of ram. So the machine should not be causing the slow behavior.

 

Any ideas?

 

Thanks

TPS

PowerBuilder .NET and UDP?

$
0
0

Has anyone utilized UDP from within PowerBuilder .NET?

 

Did you...

 

- Use an ActiveX via COM?

- Use a third party's .NET component?

- Use the raw system.net.sockets.UdpClient?

 

Enquiring minds...<finish the 35 year old marketing phrase>

 

Thank you.


PowerBuilder, Appeon and SELECTBLOB

$
0
0

Looking for anyone who's utilized SELECTBLOB embedded SQL in an Appeon-deployed application.

 

Was it problematic or effortless?

 

Having brick wall experience here.

 

(PowerBuilder 12.6)

 

Thank you.

PowerBuilder 12.5 Classic does not start in Windows 10

$
0
0

I recently updated my machine to Windows 10 having PowerBuilder previously installed. It does not get past the splash screen. I have attempted to uninstalled and re-installed with no success. Any ideas?

Tab resize

$
0
0

hello,

Currently i am working with powerbuilder  12. I want to resize all the controllers in the window in accordance with the screen resolution at the run time.i have resized the tab controller by using the Getenvironment().Now i want to resize the controllers inside the tabpage. Can anyone help me please..

 

Regards

when i delete a data, a null row is generated in database

$
0
0

hello everyone... my name is delna and i a working in a software firm but i am basically from a electronics background. i am having a problem with powerbuilder. can anyone please help me..

my application is for a supermarket. it is a point of sale application. it was in ms access and my duty is to convert it into sql server. in this application delete code is like when i press "J" that corresponding row must be deleted and i have made some codes to set the selection to the last entered row. so if i am deleting the last entered row, database is ok there wont be any null row. and if i am clicking on any other row then a null row is created at that deleted row position 

with regards, Delna Domini

Incorrect syntax near')'

$
0
0

hi every1....

 

when i convert the query from graphics mode to syntax mode, i am getting an error like: Incorrect syntax near')'

and the query is :

  SELECT auth.c_name,  

         auth.auth  ,

substring( auth.auth, 1 ,1) AS COLUMN_0 ,

( select "Function" from key5932 where "key-Index" ='0' ) as index0,

FROM auth  

where auth.c_name = :a_name

can any1 pls help me....

Number of week in the year for the given date

$
0
0

In powerbuilder 11.2 , How can find the number of weeks  in the year for the given two date  '20-01-2016' to 20-11-2016';

Please any help would appreciate

Pol

PB is very Slow when manipulate large strings

$
0
0

Hi to all,

 

i have a little code that, in a loop (1000 times) create a string concatenating some data.

 

This is very very very  slow compared to write the same data to a file.

 

i'm wonder of this.

 

If you want do a test, this is the code:

 

string ls_dummy,ls_dummy2

string ls_start,ls_start_2

string ls_stop,ls_stop_2

long ll_k

long ll_file

 

ls_dummy= 'test_string_of_a_certain_lenght_non_very_small_bla_bla_bla_bla_etc_etc_etc_ect_sbut_not so hightest_string_of_a_certain_lenght_non_very_small_bla_bla_bla_bla_etc_etc_etc_ect_sbut_not so high'

 

ls_start = string(Cpu ( ) )

ll_file = FileOpen("c:\temp\test.xml",lineMode!, Write!, LockWrite!, Replace!)

for ll_k =1 to 10000

    FILEWRITEEX(ll_file,ls_dummy)

next

fileclose(ll_file)

ls_stop =  string(Cpu ( ))

 

 

ls_start_2 = string(Cpu ( ))

for ll_k =1 to 10000

    ls_dummy2 = ls_dummy2 + ls_dummy

next

ls_stop_2 =  string(Cpu ( ))

 

messagebox('time1:= '+ls_start+' - ' +ls_stop, 'time2_= '+ ls_start_2+ ' - ' +ls_stop_2)

 

//and this is the result on my pc:

Senza nome.png

In yours opinion is normal that "in memory operations" are slower  than "on disk operations"?

 

i'm wrong something?


Retrieval problem

$
0
0

in my application i am having check box and edit(the style type) in data objects i need to display som etexts on thos edit and those texts are there in my sql and in the dataobject i have a query like this

 

SELECT auth.c_name,

        auth.auth  ,

substring( auth.auth, 1 ,1) AS COLUMN_0 ,

( select "Fn" from key5932 where "keyyy" ='0' ) as index0,

FROM auth

where auth.c_name = :a_name

 

here "auth" and "Fn" are the two tables and only table"auth" has been selected in this dataobject and i am getting data from"auth"

and "index0" is the name of edit and text which must shown on the edit is taking from table "Fn" but those are not coming properly.

and there is code lyk

dw_security.retrieve(data) here "data is from "auth" and  there is retrievel argument (a_name )in the object  which is from "auth"

 

my problem is i am not getting values from table "fn"

Powerbuilder 12.6 and Alwayson connection SQLSERVER 2014

$
0
0

I'm using PB 12.6 and SQL Server. I moved my database from SQL Server  2012 to 2014. New for  me in this new SQL Server 2014 database is the Alwayson functionality. This are my connections parameters [Database] DBMS= "SNC SQL Native Client(OLE DB)" ServerName=WSSQLPRD DBParm="DisableBind=1,Database='SDC',Provider='SQLNCLI11',CommitOnDisconnect='No',PBCatalogOwner='SDC',DelimitIdentifier=1,TrustedConnection=1",,MultiSubnetFailover='Yes', WSSQLPRD is the listener name. Connection goes OK, but when I shutdown the primary database, I loose connection. Restarting is no problem, it finds directly the failed over instance. Why is my PowerBuilder application not failing over? Can it be that I'm using SQLNCLI11? Which is really SQLserver 2012 version.... Jan

How to interrupt or stop a background process?

$
0
0

I have created a Powerbuilder app that has the capability to spawn new threads. Now, these threads will do some background process. I have implemented this one, but the problem is I don't know how to "stop" or "abort" a spawned thread. I tried unregestering the object before `destroy objectname` and `destroy(objectname)` but the process still runs on the background. Am I missing something?

Future of PowerBuilder webcast

utility for command line scanning ??

$
0
0

Can I write command in my script to scan papers directly into spec place?using Twain driver of the scanner

what i want is make button in my program

when user click on it

the scanner which directly connected to the computer of the user start to scan papers and save it as file on this computer

TWAINCommander - JSE TWAIN Software Product Description -is a program that can make it -in demo version (it save file in many format but not as PDF) i wonder if i do it directly in powerbuilder without using third party program ?

Viewing all 2935 articles
Browse latest View live