Search found 83 matches
- Mon Mar 11, 2019 12:59 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: MariaDB doubt about field
- Replies: 13
- Views: 1694
Re: MariaDB doubt about field
You may use Mr. Carlos' function IncCount() with suitable modifications. Alernatively, I prefer a function using a different approach. function seq_nextval( cName ) oCn:Execute( "UPDATE sequences SET seq_value = LAST_INSERT_ID( seq_value + 1 )" + ; " WHERE seq_name...
- Sun Mar 10, 2019 9:38 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Report with array
- Replies: 9
- Views: 1520
Re: Report with array
Hello, can you show how the report should look. Why don't you use EasyReport. This is very easy with EasyReport. Best regards Otto Hi Otto, I use fastreport with dbf but I trying mariadb and someone told me to work with array resulting of query. I don't use EasyReport because all my reports are mad...
- Sun Mar 10, 2019 2:28 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Report with array
- Replies: 9
- Views: 1520
Report with array
Hi,
Anyone have a sample how i can relationate 2 arrays (masterdata/detail) and pass to fastreport?
Thanks in advance
Anyone have a sample how i can relationate 2 arrays (masterdata/detail) and pass to fastreport?
Thanks in advance
- Sat Mar 09, 2019 7:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: MariaDB doubt about field
- Replies: 13
- Views: 1694
Re: MariaDB doubt about field
Thank you Nages in this case I need to treat the select return before save?nageswaragunupudi wrote:SELECT ... FOR UPDATEThank you Carlos but no need to block and unblock the field like dbf table in lan enviroment?
locks the record.
- Sat Mar 09, 2019 6:56 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: MariaDB doubt about field
- Replies: 13
- Views: 1694
Re: MariaDB doubt about field
Here, i get the next counter value at save the data. FUNCTION IncCount( cTable, cField ) LOCAL oQryTmp LOCAL nCount := 0 oQryTmp := oServer:Query( "SELECT " + cField + " FROM " + cTable + " FOR UPDATE" ) IF oQryTmp:RecCount() >= 0 nCount := oQryTmp:Fi...
- Sat Mar 09, 2019 2:05 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: MariaDB doubt about field
- Replies: 13
- Views: 1694
Re: MariaDB doubt about field
Thank you Nages! Can you provide a sample to work with no problems in lan enviroment? I try using fivewin native mariadb functions/commands. I new in mariadb.nageswaragunupudi wrote:You can do exactly the same thing in MariaDB also.
- Sat Mar 09, 2019 3:11 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: MariaDB doubt about field
- Replies: 13
- Views: 1694
MariaDB doubt about field
Hi guys, I have a dbf table that contains a field that controls the next number of an invoice for example. I block the registry, get the value, use, increase one, save the new value and unlock. How I do this control with mariadb? Field auto increment does not work because I want to have the option t...
- Fri Mar 08, 2019 10:36 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Array and MariaDB
- Replies: 3
- Views: 474
Re: Array and MariaDB
Thank you guys!
- Thu Mar 07, 2019 7:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Array and MariaDB
- Replies: 3
- Views: 474
Array and MariaDB
Hi Guys,
How I can create a array with a mariadb query result to use in fastreport?
Thanks in advance.
How I can create a array with a mariadb query result to use in fastreport?
Thanks in advance.
- Tue Nov 06, 2018 1:35 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Checkbox in header
- Replies: 1
- Views: 408
Checkbox in header
Hi,
I have a array xbrowse, the first field is a logical than i can mark or unmark, how i can put a checkbox in header and how i control the status (mark or unmark).
Thanks in advance.
I have a array xbrowse, the first field is a logical than i can mark or unmark, how i can put a checkbox in header and how i control the status (mark or unmark).
Thanks in advance.
- Tue Nov 06, 2018 1:18 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Set Softseek On
- Replies: 2
- Views: 467
Re: Set Softseek On
Works great, thank you!hmpaquito wrote:dbSeek() function permits lSoftSeek parameter.
obj:Seek() should permits too.from https://harbour.github.io/doc/harbour.html#dbseekCode: Select all
dbSeek( <expKey>, [<lSoftSeek>], [<lFindLast>] ) → lFound
- Tue Nov 06, 2018 11:06 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Set Softseek On
- Replies: 2
- Views: 467
Set Softseek On
Hi,
How I can set a softseek in a object database?
oArqBol:SetOrder("EMISSAO")
oArqBol:GoTop()
here I want to set
oArqBol:Seek(Dtos(Data1))
Thanks in advance.
How I can set a softseek in a object database?
oArqBol:SetOrder("EMISSAO")
oArqBol:GoTop()
here I want to set
oArqBol:Seek(Dtos(Data1))
Thanks in advance.
- Thu Aug 09, 2018 7:34 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse edit column
- Replies: 4
- Views: 771
Re: xbrowse edit column
Thank you! Works great!nageswaragunupudi wrote:Code: Select all
oCol:bOnChange := { |oCol, uOldValue| yourfunction( oCol, uOldValue ) }
- Wed Aug 08, 2018 1:36 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse edit column
- Replies: 4
- Views: 771
Re: xbrowse edit column
Thanks for the answer but is not column totals, other totals in gets with many expressions. I want to do after edit the cell.nageswaragunupudi wrote:Set oCol:nEditType := EDIT_GET. That makes the cell editable.
If you are not using a very old version of FWH, retotalling is automatically done by XBrowse.
When
- Wed Aug 08, 2018 3:16 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse edit column
- Replies: 4
- Views: 771
xbrowse edit column
Hi,
I have a array xbrowse, how i can turn a cell editable and process a function when finish edit and make total this column?
Thanks in advance.
I have a array xbrowse, how i can turn a cell editable and process a function when finish edit and make total this column?
Thanks in advance.