Agile toolkit 4.2.1, crud not working, add, edit or delete forms not showing - atk4

I am new to agile toolkit so i will need help to start crud example working. I created model Customer with fields name, email and password. After that I created page that looks like this:
<?php
class page_account extends Page {
function init() {
parent::init();
$this->add('CRUD')->setModel('Customer');
}
}
When i load page in browser data from database is showing ok in table but when i click on add, edit or delete button nothing is happening. I looked at the tutorial at youtube: https://www.youtube.com/watch?v=LQYAeYS1RT8&index=2&list=PL7CBF92AB03A1CA3B.
If someone knows what is the problem please help.
Thank in advance.

If you prefer 4.2 branch, then please try latest 4.2.x version - 4.2.5.
You can get it here: https://github.com/atk4/atk4/tree/4.2
But if you're new to ATK4 framework, then you better start with 4.3 branch and don't look back :)
You can get it here: https://github.com/atk4/atk4
Book is here: http://book.agiletoolkit.org/

Related

The wagtail example of using entities isn't working for me

The Wagtail example of using entities as given in this page of documentation isn't working for me. I am following the third example of using Entities which is supposed to create a button for stock price but no button is appearing for me in the rich text field in the admin editor. I have created a minimum reproducible example which demonstrates just this problem. https://github.com/kiwiheretic/stockentity. I am using Wagtail 4.1.1 which I understand is the latest version.
Can anyone help me see what I have missed and why the button doesn't appear as expected?
This or a similar question was asked in the Wagtail Slack. To get the button to appear, it either needs to be included in the features list when you create a new RichTextField OR you need to add it to the default configuration using the WAGTAILADMIN_RICH_TEXT_EDITORS setting.

Add call with Teams button in React Web App with TypeScript (Multiple Numbers/Buttons)

I'm struggling by integrate a button which can open a Teams call to a specific person.
Would it be possible to add a phone number to my React TypeScript Web App, how would it be done?
Is it possible to get automatically a small contact card or something like that?
Probably you can give me an easy solution like clicking on a phone number and it asks to open Teams, something like that?
This one DID NOT helped me a lot: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links
Thanks for your help wish you all the best.
I solved my issue by using following code:
{ (Name of the person) }
This creates a clickable link and shows a popup with the question to open Teams in Edge/Chrome etc. as shown below:
Last thing to do is to click on open and you will get a popup in Teams:
Wish you all a great day!

How to setup the Pre-Chat form for Live Agent in Salesforce?

I am newbie to the salesforce and working on the Live Agent setup and its other useful features. Now I am looking to implement the Pre-Chat form, but I dont see the option to choose form. I see the below, Could you please guide what setting needs to be done ?
I have created a custom VF page and now I want to choose that form. But I dont see that option. I created the Pre-chart form using : https://developer.salesforce.com/docs/atlas.en-us.live_agent_dev.meta/live_agent_dev/live_agent_pre_chat_forms_code_sample.htm
For that we need to register the site for your own force.com site like below and then only you will be able to see the
And Now you will be able to see
Paste the URL of the page eg. https://cs-19.salesforce.com/apex/PreChatForm in the Pre Chat Form field

Any way to automatic update controller and view code once model got updated - Already developed MVC application?

I have one ASP.Net MVC data base first application. Due to some enhancement work came in I have to do modification to my DB tables and Add couple of new table as well.
I saw few tutorial and you tube videos. I found, they are deleting the existing model and controller -> changing the DB schema [adding SP etc...] -> then again adding new model and controller etc. However, I think, this is not the correct approach as my application is bit big[already on production], I can not delete everything and adding again back.
How can I do it? Is that MVC does not provide something so that I can update it from Visual Studio or refresh it so that my changes will affect? Any link would help. Hope my explanation is understood-able.
Along with I also wanted to know, is there any thing else I need to take care for these kind of enhancement?
Any disadvantage of using ASP.NET MVC?
Thanks.
Double click on .edmx file(added in models folder) to open it.Then right click on it and select update model from database and then press ctrl+s to save it.

CakePHP 2 - Facebook integration

Trying to add Facebook login / registration to a site I'm working on.
Been following this tutorial http://www.startutorial.com/articles/view/34
After some tweaking (because I'm on CakePHP 2, while the tutorial is for 1.3), I managed to get it to run. (Basically I just need to pull the plugin from the branch)
Now, I'm having issues with 2 things:
How do I save the information? Right now, after I login, I just come back to the same page but instead of the Login button, it says "Teepusink is using ThisApp"
Also some of the documentation doesn't seem to match with the branch version. For example,
Facebook->registration(); ?>
is giving me an error. Should I even be using the branch version? Or how do I go about using the plugin for CakePHP 2?
Thank you,
Tee
Got this to work actually.
So I went into ConnectComponent.php, and noticed that somehow the User model isn't being "recognized" there.
Took a little digging, but this is what I did.
'Facebook.Connect' => array('model' => 'User')
Hope this helps someone.

Resources