1

Topic: The master a detail

Hello.
Purely conceptual question. Who Would be desirable to take an interest as does.
On extjs there is a window. In it the form. And the detailed table.
If the document forms, at window discovery the generator  the document twitches from the server.
Then the form already knows the  in basis.
Also the flag is exposed at a window that record of the master is not sent yet on the server.
Further the line is added in the detailed table.
Before adding in a detail the flag  is checked at a window. If false the form goes on the server and if successfully all is put a flag  in true. Well or it is possible not to pull at creation of a window the generator from a site, and simply leaking  the document to put in-1. And at  from the server to return  the master.
Now it is possible to add in a detail. The master record already in basis already exists.
At adding record goes to a detail on the server at once. The blessing the master already exists also errors should not to arise.
There are "reefs"? Or flies up?
Confuses that opened a window,  in a detail to add, and it to swear at once)

2

Re: The master a detail

Swv;
If on business it is necessary to save draft copies at once you save even not finished document in  draft copies.
If it is not necessary, from the server it is not necessary to request new ld. Deliver abstract-1.
At saving, already the server itself should disassemble all and  0,1. To write down the master and  details.
Search on word .

3

Re: The master a detail

Petro123;
It is possible and through-1. One problem Only appears.
If in the form of detail editing one textbox to add from means extjs in store details not the problem. All becomes practically the automatic machine.
And here if in a window  details are combobox in store details gets only  selected in  values, and value is not present. Actually and logically, but it is impractical

4

Re: The master a detail

Swv wrote:

And here if in a window  details are combobox in store details gets only  selected in  values, and value is not present. Actually and logically, but I am impractical

here was not cut into a problem.
If  it is the reference manual e.g. cities. Through FK .
The reference manual is filled in advance.
If saving that also it is necessary id cities for insert or update. But in any way a city title.

5

Re: The master a detail

Petro123 wrote:

it is passed...
Here I was not cut into a problem.
If  it is the reference manual e.g. cities. Through FK .
The reference manual is filled in advance.
If saving that also it is necessary id cities for insert or update. But in any way a city title.

Here understood) there was simply all. The sense was that the city title is selected from basis through join. And combo in extjs standardly sent in record only . Well and accordingly in the table at manual change of record without sending on the server and answer obtaining simply name of a city was not displayed
But on the way there was a pair of questions.
If all changes are stored in store from extjs. And then in a crowd go on the server.
1. What to do with a pager? Which breaks all data into pages on  parts. We admit is at me in the table on the server of 100 records. The pager shows 5 on 20. Page navigation works. Those it turns out at change of page of a pager it will be necessary to swear in the presence of the changed records to the user that it would be necessary to save the data before.
2. Uniqueness within a detail. Moreover and taking into account that there is a pager. Here it is simple in store you will not save. On any before adding in store it is necessary to check on the server on uniqueness. Those it turns out without a difference right after changes to send the data on the server or to save changes in store, and then to send in a crowd.

6

Re: The master a detail

Swv;
1. Read about MVC. Representation separately, editing separately.
In one window , in other editing. Go through some page.
In this forum on one tab you read a topic, on the second write the answer.