SalesForce DataTable - salesforce

I am new to Sales Force and I don't know how to continue, I have searched and searched but I have not been able to solve it myself.
I have created a data table with Ligthing and Aura Component, I'll explain what I want to do exactly: Two dataTable that show -> the first: the level 1 accounts. The second: the level 2 accounts.
With a button that when the selections are changed from one account to another.
Right now I can show all accounts but only that.

Can you please expand on your question?
I see that you tagged Salesforce Marketing Cloud, but I am unsure how or where that plugs into your question. It would be really helpful to get more information on what you are trying to do. Try including the code you have or the outcome you are looking for.

Related

Database relationships design JPA [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have been wondering about how to design the relationships between entities in my app, I am kinda new to this. Can you help?
WHAT APP? - CONTEXT
I am trying to develop an app to help people track their expenses, calculate statistics etc., as a hobby project to train my poor skills in full-stack development. The idea is that a user logs in and can add an expense, for example a chicken bought for 3 $ and the app will calculate his expense stats based on repeated input.
WHAT DO I NEED TO FIND OUT?
I have done users registration and logging in and am now creating the "SingleExpense" entity class. I am wondering how should the relationship between the expense and the user look like in this particular use case.
Should the user have a Set of expenses as a field with #OneToMany annotation? But then whenever I fetch the user I will get all his expenses since forever, right? I might do the FetchType lazy or something, but I am looking for the cleanest, correct solution.
Should the Expense have the User as a field with #ManyToOne annotation? But then if I try to fetch all the expenses, the User objects will be fetched along right? And if I want to persist a new Expense I need to put the whole User object into the expense, yeah?
Or maybe it should be bidirectional for some reason?
I am very confused with that, I hope you guys can try and explain to me what works and what doesn't and why. Thanks a lot! Cheers!
For the reason you explained, you should probably not have a OneToMany, since It would probably never be a good idea to ever load all the expenses of a given user. And even if some use case needs to do that, a simple JPQL query can do that.
So that leaves the second option, which is the right one. A ManyToOne can be lazy, too. So fetching an expense won't fetch the user unless you start using the value returned by expense.getUser(). And regarding the storage of a new expense:
loading the user from the database, using EntityManager.find(), to store it in the new expense wouldn't be a big deal: loading an entity by its ID is extremely fast
but even then, you don't actually need to load the user from the database if you assume it exists: you just need to get a lazy reference to the user, which you can obtain thanks to EntityManager.getReference()

Stop automatic addition of fields to page layouts

I want to know if there is a way to stop being prompted to automatically add new custom fields to page layouts? I have a few developers that "forget" to uncheck that box and then the fields are mobilized to all the layouts. This is not ideal and would love to disable this feature. If this is not the correct forum to ask this question please let me know where and I will move it.
This question in salesforce formus:
https://success.salesforce.com/ideaView?id=08730000000gPfwAAE
Describes perfectly my question but never got answered.
There is no solution to this, the developers just need to pay attention when creating fields

VB program guidance

I am trying to create a program that will have a form to add users with multiple information (first/last name,tel,vat,email etc.) and store them in a database.
Then I want to have a standard form and will choose from the database the user each time I want to print the form. This way when the user is chosen all fields will be filled with the info from the database.
I have no clue with VB at all so all I ask here is for some guidance.
Can someone point me in the right direction?
Sounds like you need to learn .NET first, so head over the Microsoft Virtual Academy and wade through VB Fundamentals for Absolute Beginners.
If you are interested in making a user website, then this Microsoft tutorial is a good place to start. It shows how to create a Movie database with maintenance screens. You should be able to adapt it to "users".
You can also search the MSDN Developer Code Samples.
Happy coding.
P.S. Stack Overflow is for specific technical questions, not general inquiries. That's why your question is getting down-voted.

How to get future publish/archive date for knowledge articles using apex?

Currently publishing articles in a custom VF page using the Knowledge Management Publishing Service Class, and publishing/archiving articles into the future. But I can't seem to find a way to display this future date to the user. It isn't stored it seems in any fields on the the article itself or in any apex jobs.
Does anyone know how SF displays this field on their own page? And if they allow access to this date somehow via apex?
If I understand your question correctly, the information you're looking for can be found in KnowledgeArticleVersion, probably under FirstPublishedDate. So you'll want to query for the latest row in KnowledgeArticleVersion for the article in question and then pull its FirstPublishedDate to get the date you're looking for.

Form details to be displayed in the grid

I have basic question from my side, as I am Beginner level in Delphi XE2.
I am using VCL form and entering the Form details in the edit box and to be displayed in the grid with several basic operation like Add, Delete and Update/Retrieve. Whereas the details have to be saved in the SQL server.
If I am using the form later on, i need the Previous data in the grid from the SQL. For those operation my Update/Retrieve field operation must be done on Delphi or SQL server.
Hope everyone would have come across these basic forms. So help me.
Thanks in advance.
Regards,
Rajan.
http://docwiki.embarcadero.com/RADStudio/en/Developing_Database_Applications
http://docwiki.embarcadero.com/RADStudio/en/Developing_Database_Applications_Index
Those are basic topics about making your application connecting to database.
ExpressQuantumGrid is very complex and expensive control on it's own, it does not have online help but does have offline one, and there is "Task-based help / Connecting to Data" section that covers what u need about that certain grid. Do you really use tcxgrid component or just put that tag at random guess ? You say u have no Delphi experience but did you really purchase DevArt library which price may be almost as large as Delphi itself ? If you did you may try opening their VCL demos and reading their sources how they were implemented.

Resources