kandi X-RAY | dac Summary
kandi X-RAY | dac Summary
DAC (Data Application Framework) tools
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dac
dac Key Features
dac Examples and Code Snippets
Community Discussions
Trending Discussions on dac
QUESTION
I'm trying to use PXDBScalar to bring in a boolean attribute from the Sales Order user defined fields tab to the Shipment screen.
I found another stack overflow post that helped with the creation of the SOOrderKvExt DAC, and I am able to retrieve the value of the valueNumeric (decimal) field via my PXDBScalar attribute, but I cannot find a way to convert the value to a bool so it properly displays as a checkbox on the screen. I tried setting the data type for my unbound field to bool, but got a data type conversion error. I also tried leaving the field as a decimal and just changing the control type on the screen, but it always displays as checked regardless of the value. Any idea how I can convert the decimal value to a bool in the PXDBScalar attribute or another solution?
Code snippets provided below.
SOOrderKvExt
...ANSWER
Answered 2021-Jun-03 at 04:39I would add a boolean calculated field. Similar to this :
QUESTION
In Acumatica (Build 2020.5.2.368) we have done extensive customisations on the Project Task (DAC: PMTask) which saves correctly when we hit the Save button. When we want to push over some of the changes to the Revenue Budget tab (DAC: PMRevenueBudget) - we use the following code:
...ANSWER
Answered 2021-May-25 at 04:02So, the best solution to this we found so far is to update the Graph in the row persisted.
QUESTION
I am trying to enable the custom field in Case when the Status is in Closed State. I am working on a customization for Acumatica version 20.114.0020 (2020 R1).
I have created a custom field usrIsNotBillable in CRCase DAC.
...ANSWER
Answered 2021-May-20 at 09:33Besides writing code to enable the field in RowSelected event, it is also important to add the field in Closed state in the Workflow.
However, if this is also not working deleting contents of CstDesigner of project does the job.
QUESTION
I tried to create a Screen in acumatica/lexbizz, which should display all entries for my newly created DAC in a simple grid view. The graph looks like this:
...ANSWER
Answered 2021-May-12 at 15:42I would check your customization page definition, my guess is that you created the wrong kind of control to present your date field. Go into 'Customization Project Editor', click on your screen under the 'Screens' header, Click on your grid, click on the 'Add Data Fields' column on the right. Check for your 'Valid To' field and make sure it's not listed with a Selector Control or something other than DateTimeEdit. If it is, you can delete, change the control, and re-add.
QUESTION
I am trying to implement access based control for a Survey app but having trouble designing a functional architecture. It seems like DAC would be a good fit for what I am trying to do, but am unsure.
Hierarchy
Survey Series -> Multiple Collection's of Survey's (1 survey that multiple people have to complete) -> Survey.
Examples
I have Survey Managers who need to assign collection creators. Collection creators assign users to a survey belonging to a collection. Each User can have different access controls based on each Series, Collection or Survey.
User 1 can only view surveys assigned to him, but can also assign surveys belonging to a specific collection to other users since he was given access by another Collection Creator.
User 2 can only view collections he has created and has been given access to and view the assigned surveys in each collection.
User 3 can create series but cannot view any collections to users he did not assign as collection creators.
Summary The access should be hieracle. Every record (Series, Collection, Survey) would have its own set of access controls [Create, Read, View, Update] that users delegate. Could I get some help with designing a model?
...ANSWER
Answered 2021-May-13 at 20:45Unfortunately, implementing a complex and hierarchical authorization model like this within a database is... not simple. Given the requirements presented (similar roles across multiple resource types), and the need for “inheritance” of those roles, I’ve outlined a possible model to store the roles:
Name Kind Description user_id Foreign Key The user that has this role role Enum The role survey_id FK or NULL The survey to which the role applies collection_id FK or NULL The collection to which the role applies series_id FK or NULL The series to which the role appliesEach row in the table would contain a user, their role, and one of the {survey, collection, series} to which the role applies. This would allow your application to easily lookup the role (which are standardized) for the given resource you are checking. This is a pattern similar to Generic Foreign Key in Django. However, it still leaves one key problem: the heirarchy.
One option would be define a function in your code that knows which roles to lookup for each level of your heirarchy, so if it is given a survey
, it looks up the roles for the user in all levels (survey
, collection
, series
) and returns the role with the greatest access to check against. Otherwise, you'd likely need to make use of a series of joins to select all the roles for the user and the incoming resource, which could become very slow as your tables grow larger. This also only works if your roles remain the same at each level; otherwise, you'll find yourself quickly having
to compare different enumerations of roles.
Hierarchical questions of these sorts appear in permissions checking often, and your unease is a recognition of that fact that its tough to map them in traditional relational databases: permission relationships are, at their core, a graph, and relational databases were not designed for easy traversal of graphs.
As a result of this complexity, there are services (this one is mine) that abstract away this complexity for you, so you can define your roles and relationships and not have to worry about the traversals. As a demonstration, I took the requirements you listed above and wrote an example in our playground, which might help you visualize and test these relationships.
QUESTION
I have customization project in Acumatica 2021R1 (v21.104.0018). I have a parent DAC that has an ID and multiple child DACs that use this ID with a PXParent attribute. Whenever I select the screen in the customization project editor to design it, I get an error message that says, "An item with the same key has already been added." Then, I'm not able to design the screen in the Screen Editor. The weird thing is that I don't get this message when I open the actual screen.
I'm not sure what this is referring to because there are no records in the database in the tables that I'm using for the views of the graph for the screen.
Not sure if anyone else has had this problem and knows what causes it, but Acumatica could really use some more specific error messages.
Here is my parent DAC (note: I left out the system fields here for purposes of space):
...ANSWER
Answered 2021-May-12 at 16:23I am not 100% certain, but I think this is about the ID's in the ASPX rather than the database data. For example:
Notice ID="PXLayoutRule1" in that sample. If this "ID" value of any entry in the ASPX is duplicated anywhere in the screen as an ID of another entry, you will get an error.
I had similar issues in an earlier version, especially when I would try to customize a screen and have the customization screen interface crash on me in the middle of it. I'd try deleting the screen, but I'd get orphaned files in the CstDesigner and CstPublished folder, which would really compound my issues.
Hopefully, you know how to look through your ASPX file and the Customization Project XML to check all the ID's. If you do know how to walk through all that, just add something to all of your ID values, like an X at the end. (i.e. PXLayoutRule1X) If not, gaining that familiarity is a worthy side-objective as you continue on.
If your issue is the same as I had in the past and you cannot simply find and edit the duplicate ID in the ASPX file or Project XML, here are some steps to take AFTER you backup your project and the affected folders noted in these steps. And, of course, this also assumes you are working in a development copy of your instance. (I often clone my main DEV instance to my laptop to test things like this if I am unsure so that my DEV instance stays unaffected. It just takes extra time you may or may not have.)
- Delete the screen from your customization project.
- Locate the folder CstDesigner and CstPublished under your instance's root folder (i.e. AcumticaDEV, Sandbox, etc. where your site exists)
- Go into the Pages_XX folder (where XX is the 2 character code for your 1st 2 letters of the screen ID)
- Delete the screen file(s) from there, if you find them.
- If this is a custom screen, go into the Pages folder which is located in the same root folder of your instance as those folders in step 2 and repeat steps 3 and 4 in that folder.
- Check for any reference to your screen in the Project XML from the file menu in the Customization Project screen and remove those sections if they exist. (This tends to relate more for customizing an existing screen.)
- Publish your project.
- Start over on your page and see if you still get the error.
Again, be sure to get a backup before taking these steps so that you can easily put it back if that does not resolve your problem.
QUESTION
I have been working all day on a powershell script, when all of a sudden it broke. Here's an example of what's not working:
...ANSWER
Answered 2021-May-11 at 20:56Not sure what changed, but uninstalling and reinstalling the SQLServer module and then adding import-module sqlserver at the top of the script seems to have fixed it
QUESTION
On my screen, we have 3 level of master child relationship, with the default Copy Paste functionality of Acumatica ,Parent and first child is copied but the second child Data is not getting copied.
Is there any place/function to debug the default copy paste functionality, or write our own custom paste function on top of what Acumatica is providing with same Paste button?
Edit for Brain Comments -
I have not added any attribute on the View. First DAC of DATAview is perfectly OK with me, but it is not getting data for second view defined. Data View - As the Maint class is inheritade from PXRevisionableGraph -
Document (Default from Base graph)
public PXSelect< Detail, Where>, And>>>, OrderBy< Asc>> details;
public PXSelect< Detail2, Where>, And>>>, OrderBy< Asc>> detail2;
Issue - details view is copied but details2 view is not getting copied
...ANSWER
Answered 2021-May-11 at 13:54Finally I got to the root cause of the issue,
Copy paste works as expected for PXRevisionableGraph as it should, the issue was with the Attributes used with the DAC fields. IN my case we have used PXFromula attribute that was used to calculate the SUM of the Child rows. Once that is commented everything start working as expected. we added the events for calculating the SUM instead of PXFormula now.
QUESTION
I am trying to enable an UDF in transfer screen on release status, but the UDF is not getting enabled. May anyone help me on this issue. I have debugged the code as well, while debugging, the code is getting executed but the result is not taking any effect on the screen. I can see the cursor blinking on that field as well. Thanks in advance. Following is my Code :
...ANSWER
Answered 2021-Apr-23 at 05:38The document is in released status. There are mechanisms to prevent field editing when a document is in a closed state. It is not recommended to enable fields in this situation.
To enable the fields you need to revert the mechanism blocking editing. It is often the AllowUpdate
property of the data view that is used to do so but it can also be automation steps or the workflow system.
When re-enabling AllowUpdate, you need to disable and re-enable the fields:
QUESTION
I have a simple python code to help me keep track of several devices running on Raspberry Pi in the Raspbian Jessie OS. It works quite well, except that it randomly halts with the error message:
...ANSWER
Answered 2021-Apr-22 at 05:47Because this error occurs sporadically, it took some time to verify a solution. But I found that using try:
except:
allowed the problem to resolved with the following code modification.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dac
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page