Like that,I wanna add a query into container, but throw this error!
Is there someone who knows what the problem is?
Like that,I wanna add a query into container, but throw this error!
Is there someone who knows what the problem is?
Args::create() is called when opening workspace
when opening my view
Args::create() is called either.
Aha, so you're talking about a tile created by personalization, not by development, right?
If you're sure that initialQuery is populated before (un)packing, then you extend the packing logic, as discussed before.
By the way, can you tell me where Args::create() is called from in this case?
It's not about tile, it's about Args doesn't pack initialquery when opening tile and it cause this issues.
Created a saved view by extending the existing pre-filtering on that specific form "Procurement and sourcing > Purchase orders > Purchase order follow-up >Purchase orders without confirmed delivery date" with a filter on the created by person.
Saved this view and created a tile!
Opening the tile I saw that all filters were deleted on my saved view and I got the message with the user security restrictions again. (see screenshot)
Selecting the same saved view form the form itself of course still had all the filters. (see screenshot)
Next I entered all the filters again on the session that I had opened from the tile and clicked on save the view again under the same name.
Then I closed the form and went back to my work space with the tile.
From the workspace I opened the tile again and this time the filters did stay also with the form opened from the tile and no message was shown. How nice!
Which tile is it about?
Well,let me show you the bug
Opening form from menu item directly - initialQuery().modeledQueryName() exists (see immediate window) - OK:
Opening same form/menu item from a Tile - initialQuery() is null - Not OK:
So here is my problem
if I create an extension as you said, args will include the initialQuery or not ? I was confused about how to recognize which function will use(which pack() and unpack() ) when exec create(),or both?
Besides,could you please give more details about the code?Thanks again!
Sorry, but I don't understand what you mean by "finding a model about extension".
I'm saying that if you don't have a model for your customizations, you need to create one, because you can't work without a model. Then create a project (make sure it's associated with your model) and create a new class there.
But you shouldn't create a new model for each change - a single model for all changes will likely be sufficient.That's what I'm saying, I can't find any model about extension.
Well, you definitely need to learn the basics before you can do any development. You see that you're currently unable to do anything...
Don't you have anybody on the project who can teach you at least a bit of F&O development? If not, look at resource on the internet.
You need a model to do any development, because that's where your code gets stored. But you shouldn't create a new model for each change - a single model for all changes will likely be sufficient.
I've searched about extension class and I had some troubles of how to create extension class, should I create a new model before create a extension class? I'm not familiar with D365 operations. Could you please give me more details about it ? thanks again!
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,436
Most Valuable Professional
nmaenpaa
101,156