# Please Help me! Examples doesn t works

**URL:** https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478
**Category:** Data Abstract
**Created:** [February 28, 2020, 11:20am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478 "2020-02-28T11:20:17Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![alr1976](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@alr1976](https://talk.remobjects.com/u/alr1976)
#### Post date: [February 28, 2020, 11:20am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/1 "2020-02-28T11:20:17Z")

</div>

Hi!  
i never used Data Abstract so i’ m m learning it. I have many difficults because Examples doesn t works and all examples are only for advanced users.

Examples give problem about decimal. Please check screenshot.

I have a simple server and open 2 clients. when i change record and Applychange, it is not update in second client…Why? This is my testcase.

Br,Alessandro

[VCLApplication6.rar](https://talk.remobjects.com/uploads/short-url/4BRYCzJx46qL89JGcOrCcwnn9va.rar) (120.4 KB)

 ![error](https://talk.remobjects.com/uploads/default/original/2X/4/4f1806e9718ef57d30ac6294879e992951050193.png)

---

<div class="post-metadata">

### Author: ![antonk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/a5b964/32.png) [@antonk](https://talk.remobjects.com/u/antonk)
#### Post date: [February 28, 2020, 12:05pm UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/2 "2020-02-28T12:05:52Z")

</div>

Hello

I’ll log an issue to review this sample. Could you please describe in steps what you did to get this error?

To start from the ground up please do the following:

Read this article: [https://docs.dataabstract.com/Introduction/WhatIsDataAbstract/](https://docs.dataabstract.com/Introduction/WhatIsDataAbstract/)

Go thru this tutorial: [https://docs.dataabstract.com/Delphi/Tutorials/TodoTutorial/](https://docs.dataabstract.com/Delphi/Tutorials/TodoTutorial/)  
Ask any questions you’ll have while running this tutorial.

Hope that helps

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 28, 2020, 12:05pm UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/3 "2020-02-28T12:05:56Z")

</div>

Thanks, logged as [bugs://84003](https://www.remobjects.com/portal/bugs/?id=84003)

---

<div class="post-metadata">

### Author: ![alr1976](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@alr1976](https://talk.remobjects.com/u/alr1976)
#### Post date: [February 28, 2020, 2:10pm UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/4 "2020-02-28T14:10:34Z")

</div>

Hi!

I open Example and run it.That s all…

In Italy we have ‘,’ like decimal character but in other countries decimal character is ‘.’

Can you answer some questions?

1)Can i use Tvirtualtable(mydac) or any other memory table for remote database or i must to use absolutedb,mysq,mssql,nexusdb,etc databases?

1. How can i update all clients database from server? or i must to use refresh from client side?  
3)I need to have extra field in client database, it is possible? For example in remote Database i have NAME,SURNAME,AGE fields in client database can i have extra field for example NAME,SURNAME,AGE,TELEPHONE NUMBER but when i use refresh it update only NAME,SURNAME and AGE?

Br,Alessandro

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 5, 2020, 10:35am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/6 "2020-03-05T10:35:40Z")

</div>

Hi,

> [@alr1976](#):
>
> Examples give problem about decimal. Please check screenshot.

your sample doesn’t use decimal. can you attach correct example, pls?

> [@alr1976](#):
>
> I have a simple server and open 2 clients. when i change record and Applychange, it is not update in second client…Why? This is my testcase.

you can implement event by yourself that will inform all clients that record of table or table was changed.  
Data Abstract doesn’t inform clients about such changing yet

> [@alr1976](#):
>
> 1)Can i use Tvirtualtable(mydac) or any other memory table for remote database or i must to use absolutedb,mysq,mssql,nexusdb,etc databases?

you can use our [TDAMemDataTable](https://docs.dataabstract.com/API/Delphi/Classes/TDAMemDataTable/) for such purpose. setting table.[RemoteFetchEnabled](https://docs.dataabstract.com/API/Delphi/Classes/TDAMemDataTable/#RemoteFetchEnabled) to `false` allows to store data in memory w/o using remote sources.

> [@alr1976](#):
>
> How can i update all clients database from server? or i must to use refresh from client side?

simple case - use `Refresh` method. it just closes and reopens table.  
complicated mode - use `RefreshFromServer` method. it allows to update table according to specified `DynamicWhere`. Data rows will be updated w/o closing table.

imagine that your table has `UpdateTimeStamp` field that is filled by trigger so you can specify `DynamicWhere` that will contain expression like `UpdateTimeStamp > :lastupdate`. so it will return all rows that were changed after specified date.

> [@alr1976](#):
>
> 3)I need to have extra field in client database, it is possible? For example in remote Database i have NAME,SURNAME,AGE fields in client database can i have extra field for example NAME,SURNAME,AGE,TELEPHONE NUMBER but when i use refresh it update only NAME,SURNAME and AGE?

yes, it is possible. you need to declare `TELEPHONE NUMBER` as `calculated` on client-side

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [March 5, 2020, 11:24am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/7 "2020-03-05T11:24:44Z")

</div>

[bugs://84003](https://www.remobjects.com/portal/bugs/?id=84003) got closed with status testcaseerr.

---

<div class="post-metadata">

### Author: ![alr1976](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@alr1976](https://talk.remobjects.com/u/alr1976)
#### Post date: [March 6, 2020, 11:18am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/8 "2020-03-06T11:18:27Z")

</div>

About point 1

I need in remoteServer to use TDaMemTable for example table1 and clients connects with table1. With DataAbstract i must to use mysql,mssql or other sql database or i can use only memtable? In ConnectionManager i can use only third party sql server but i can t use memory table. I try to use memorytable in server but it is not possible. I send test case but there is no option to use local memorytable.

Br,Alessandro

[VCLApplication10.rar](https://talk.remobjects.com/uploads/short-url/lhSdQ88kQu1abKfJ5FiAactp31b.rar) (81.8 KB)

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 6, 2020, 11:35am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/9 "2020-03-06T11:35:55Z")

</div>

Hi,

- drop `TDAMemDataTable` (`table1`) to your server datamodule.
- specify `table1`.[RemoteFetchEnabled](https://docs.dataabstract.com/API/Delphi/Classes/TDAMemDataTable/#RemoteFetchEnabled) to `false`.
- open this table in the OnCreate event of server datamodule.
- drop another `TDAMemDataTable` (`table2`) to the DataAbstract service (`DataService`)
- set as `table2`.[CloneSource](https://docs.dataabstract.com/API/Delphi/Classes/TDAMemDataTable/#CloneSource) to `table1`
- register `table2` in `DataService`.[ExportedDataTables](https://docs.dataabstract.com/API/Delphi/Classes/TDataAbstractService/#ExportedDataTables).

you can also review this DA4 example - [Exported DataTables.zip](https://talk.remobjects.com/uploads/short-url/sCxmYHbceUVlJi2nGOgNcMaoK3M.zip) (42.2 KB) .  
this is pretty old so it can require some modification to DA10.

---

<div class="post-metadata">

### Author: ![alr1976](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@alr1976](https://talk.remobjects.com/u/alr1976)
#### Post date: [March 6, 2020, 11:52am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/10 "2020-03-06T11:52:39Z")

</div>

> [@EvgenyK](#):
>
> register `table2` in `DataService` .[DataService](https://docs.dataabstract.com/API/Delphi/Classes/TDataAbstractService/#ExportedDataTables).

ok i followed step by step your info but i don t understand how  
Register table2 in Dataservice.Dataservice

Can you explain?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 6, 2020, 11:56am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/11 "2020-03-06T11:56:56Z")

</div>

hi,

typo. it should be _… in `DataService`.ExportedDataTables:_

 ![Untitled](https://talk.remobjects.com/uploads/default/original/2X/6/67d4731586a06caa19b39fae0977c99dafca04c1.png)

---

<div class="post-metadata">

### Author: ![alr1976](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@alr1976](https://talk.remobjects.com/u/alr1976)
#### Post date: [March 6, 2020, 2:28pm UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/12 "2020-03-06T14:28:25Z")

</div>

ok i followed your step but doesn t works…schema is not assigned can you help me?

Br,Alessandro

[VCLApplication10.rar](https://talk.remobjects.com/uploads/short-url/zN79PFC4EUvjnFUAjvI8A9gaufJ.rar) (122.6 KB)

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 6, 2020, 2:58pm UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/13 "2020-03-06T14:58:19Z")

</div>

pls review updated sample: [testcase.zip](https://talk.remobjects.com/uploads/short-url/tGzZ1tz2D6dI4pH1KYYPGq3hKk1.zip) (112.9 KB)

---

<div class="post-metadata">

### Author: ![alr1976](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@alr1976](https://talk.remobjects.com/u/alr1976)
#### Post date: [March 10, 2020, 9:59am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/14 "2020-03-10T09:59:59Z")

</div>

Thank you! Your example works!

Hi!

It possible to have Variant field in memtable? I have variant variable to store inside a field.

Br,Alessandro

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 10, 2020, 10:06am UTC](https://talk.remobjects.com/t/please-help-me-examples-doesn-t-works/21478/15 "2020-03-10T10:06:04Z")

</div>

Hi,  
variant type isn’t supported, but you can store your variant as blob.  
`uROBinaryHelpers` unit has some methods that allow to convert Variant to Binary (i.e. stream) or TBytes and vice versa
