La sincronizzazione delle tabelle consente lo scambio dati tra Vibecode e il client (es. POSible, Customer Data Capture, ecc.) e viceversa.
L’utente può accedere all’elenco delle tabelle sincronizzate dall’albero di Vibecode:
Sottoscrizioni > Sincronizzazione offline > Sincronizzazione offline > Classi sincronizzate
Nella parte dei dati principali (Figura 1) l’utente deve impostare i seguenti parametri:
-
Classe: nome della classe Vibecode
-
Attivo: se impostato a No i pacchetti di dati non vengono generati per questa classe (Sì\No)
-
Alias: identificativo condiviso tra Vibecode e i dispositivi che identifica la classe esportata
Nel box Export Data (Figura 2) l’utente deve impostare i seguenti parametri:
-
Priorità: nel caso di tabelle dipendenti indica quale sincronizzare prima;
-
DataSource: contiene il nome della sorgente dati sottoscrizioni (kSubscriptionExport);
-
Campi: contiene l’elenco dei campi della tabella da esportare e inviare al client (es. POSible/RA app);
-
Mode: indica la modalità di sincronizzazione della tabella (“OneWay”, “TwoWay”, “OneWayToServer”).
Nel box Export Filter (Figura 2) l’utente può impostare i seguenti parametri:
-
Global Filter: specifica un filtro generale sui record da esportare;
-
Copy Publication Filter From offlineclass: consente di derivare la configurazione di questa sezione da un altra classe (ad es. la classe ProductImage prende la configurazione da Product);
-
Different app publication: se impostato a No la sincronizzazione passa lo stesso set di dati a tutti i client, altrimenti per ogni client viene passato un set di dati differente, come definito nel box Sottoscrizioni (kOfflineClasses_Subscription).
L’utente può modificare i valori dei parametri della tabella sincronizzata, ad es. l’elenco dei campi che vengono trasmessi al client, ma la modifica avrà effetto solo dopo aver eseguito, nella corretta sequenza, i seguenti comandi:
-
Refresh Offline Cache
-
Total CleanUp (opzionale)
-
Offline Publication All
-
Generate Packages All
Modalità di sincronizzazione delle tabelle tra client e Vibecode
OneWay = monodirezionale da Server a Client (valore del parametro: 1).
OneWayToServer = monodirezionale da Client a Server (valore del parametro: 2), i record inviati dal Client sono presenti nell'array "rows".
TwoWay = bidirezionale, i record inviati dal client sono presenti nell'array "rows" (valore del parametro: 0 [zero]).
*Mode = modalità di sincronizzazione
|
Class |
DataSource |
Mode* |
Global Filter |
|
Company (kCompany) |
OfflineCompany |
OneWay |
|
|
Country (kCountry) |
|
OneWay |
|
|
Coupon Type (kCouponType) |
|
OneWay |
|
|
Currency (kCurrency) |
|
OneWay |
|
|
Gender (kGender) |
|
OneWay |
|
|
Gift Card Group (kGiftCardGroup) |
|
OneWay |
|
|
Generic Sale Reason Code (kGenericSaleReasonCode) |
|
OneWay |
|
|
GiftCard Transaction Reason Code (kGiftCardTransactionReasonCode) |
|
OneWay |
|
|
Municipality (kMunicipality) |
|
OneWay |
|
|
Municipality ZipCodes (kMunicipality_ZipCodes) |
|
OneWay |
|
|
OFFLINE REST (kOfflineREST) |
|
OneWayToServer |
|
|
Payment Term (kPaymentTerm) |
|
OneWay |
|
|
POS Department (kPOSDepartment) |
|
OneWay |
|
|
POS Tiles Setup (kPOSTileSetup) |
OffLineTileSetup |
OneWay |
field(POSTileSetup@kStore.Id) eq('#value#') |
|
Price Calendar (kPriceCalendar) |
|
OneWay |
|
|
Price Calendar Type (kPriceCalendarType) |
|
OneWay |
|
|
Product Attribute (kProductAttribute_values) |
|
OneWay |
|
|
Product Attribute (kProductAttribute) |
OfflineProductAttribute |
OneWay |
|
|
Product Attributes Set (kProductAttributeSet) |
OfflineProductAttributeSet |
OneWay |
|
|
Product Barcode (kProductBarcode) |
|
OneWay |
|
|
Product Brand (kBrand) |
|
OneWay |
|
|
Product Catalog (kProductCatalog) |
|
OneWay |
|
|
Product Category (kProductCategory) |
OfflineProductCategory |
OneWay |
|
|
Product Class (kProductClass) |
|
OneWay |
|
|
Product Department (kProductDepartment) |
|
OneWay |
|
|
Product Department Explosion (kPOSDepartmentProducts) |
|
OneWay |
|
|
Product Description (kProductStyleDescription) |
|
OneWay |
|
|
Product Fiscal Group (kProductFiscalGroup) |
|
OneWay |
|
|
Product Group (kProductGroup) |
|
OneWay |
|
|
Product Kit (kProductKit) |
ProductKit |
OneWay |
field(1) eq(1) and(field(startdate) nu('') or(field(startdate) le(to('date',getdate())))) and(field(enddate) nu('') or(field(enddate) ge(to('date',getdate())))) |
|
Product Kit Lines (kProductKit) |
ProductKitLine |
OneWay |
field(1) eq(1) and(field(parentid.startdate) nu('') or(field(parentid.startdate) le(to('date',getdate())))) and(field(parentid.enddate) nu('') or(field(parentid.enddate) ge(to('date',getdate())))) |
|
Product Kit Line Group (kProductKit) |
KitGroups |
OneWay |
|
|
Product Relation (kProductRelation) |
|
OneWay |
|
|
Product Relation Type (kProductRelationType) |
|
OneWay |
|
|
Product Serial (KProductSerial) |
|
OneWay |
|
|
Product Status (kProductStatus) |
|
OneWay |
|
|
Products (kProduct) |
OffLineProduct |
OneWay |
|
|
Products Images (kProduct_Images) |
Offline Product Image |
OneWay |
|
|
Products Taxes Relations (kProductTaxRelationExplosion) |
|
OneWay |
|
|
Receipt Message (kReceiptMessage) |
|
OneWay |
|
|
Receipt Suspended (kReceiptSuspended) |
|
TwoWay |
|
|
Return Reason Code (kReturnReasonCode) |
|
OneWay |
|
|
Sales Discount Reason Code (kSalesDiscountReasonCode) |
|
OneWay |
|
|
Sales Price (kSalesPrice) |
|
OneWay |
|
|
Sales Price Discounts (kSalesPrice_Discounts) |
|
OneWay |
field(1) eq(1) and(field(parentid.enddate) nu('') or(field(parentid.enddate) gt(to('date',getdate())))) |
|
Sales Price Group (kSalesPriceGroup) |
|
OneWay |
|
|
Sales Price Type (kSalesPriceType) |
|
OneWay |
|
|
Season (kSeason) |
|
OneWay |
|
|
State Province (kStateProvince) |
|
OneWay |
|
|
Stock Area (kStockArea) |
|
OneWay |
|
|
Store (kStore) |
OfflineStore |
OneWay |
|
|
Store Effective Prices (kStore_EffectivePrices) |
|
OneWay |
|
|
Store Official Prices (kStore_OfficialPrices) |
|
OneWay |
|
|
Store Till Discount ( kPOSStoreTillDiscount ) |
|
OneWay |
field(store.code) eq('01') |
|
Style Relation (kStyleRelation) |
|
OneWay |
|
|
Supplier (kSupplier) |
OfflineSupplier |
OneWay |
|
|
Tax (kTax) |
|
OneWay |
|
|
Tile (kPOSTile) |
|
OneWay |
|
|
Tile Products (kPOSTileProducts) |
|
OneWay |
|
|
Till Discount (kTillDiscount) |
|
OneWay |
|
|
Tipping Rule (kPOSTippingRule) |
|
OneWay |
|
|
Tipping Rule Tipping Options (kPOSTippingRule_Options) |
|
OneWay |
|
|
Unit of Measure (kUnitOfMeasure) |
|
OneWay |
|
|
VAT (kVATCode) |
|
OneWay |
|
|
VAT Exemption Reason (kVATExemptionReason) |
|
OneWay |
|
|
Void Reason Code (kVoidReasonCode) |
|
OneWay |
|