Hello, in my project I’m using two datastores. When I create new empty screen as new screen API with data collections:
one from main datastore
second from additional datastore.
With one lookupField with data collection from main datastore there is no problems. Works as expected.
With lookupField with options from collection from additional datasore show blank names
As I can see in debug collection from additional datastore contain no data other then id.
@UiController("nl_ShopPersonalCallChangeShop")
@UiDescriptor("shop-personal-call-change-shop.xml")
@LoadDataBeforeShow
public class ShopPersonalCallChangeShop extends Screen {
}
Hi,
Could you provide a sample project that reproduces the error?
I couldn’t reproduce the problem.
Sample project: mainaddstore.zip (80.5 KB)
Script for the additional datastore:
CREATE DATABASE addstore
WITH
OWNER = root
ENCODING = 'UTF8'
LC_COLLATE = 'Russian_Russia.1251'
LC_CTYPE = 'Russian_Russia.1251'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
CREATE SCHEMA public
AUTHORIZATION postgres;
COMMENT ON SCHEMA public
IS 'standard public schema';
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
CREATE TABLE public.addstore_customer
(
id uuid NOT NULL,
version integer NOT NULL,
create_ts timestamp without time zone,
created_by character varying(50) COLLATE pg_catalog."default",
update_ts timestamp without time zone,
updated_by character varying(50) COLLATE pg_catalog."default",
delete_ts timestamp without time zone,
deleted_by character varying(50) COLLATE pg_catalog."default",
number_ character varying(255) COLLATE pg_catalog."default",
name character varying(255) COLLATE pg_catalog."default",
CONSTRAINT addstore_customer_pkey PRIMARY KEY (id)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public.addstore_customer
OWNER to root;
-- Index: idx_addstore_customer_uk_number_
-- DROP INDEX public.idx_addstore_customer_uk_number_;
CREATE UNIQUE INDEX idx_addstore_customer_uk_number_
ON public.addstore_customer USING btree
(number_ COLLATE pg_catalog."default")
TABLESPACE pg_default WHERE delete_ts IS NULL;
Andrey, thanks for example, but problem not with standard lookup or browse screens.
As you can see in my first message with xml and java code class extends Screen, not StanardEditor or StandardLookup.
PS: Later, I try to reproduce problem with your example.
Created screen with your test project. It works OK with blank screen.
But when I added second additional datastore with Microsoft SQL Server 2000 connection and created blank screen error is reproduced.