Master detail Interactive grid in Apex - oracle-apex

I have created a master (Department )detail(Employee) pages in Apex19.1 both pages are interactive grids.In Department grid I create a form to add new department. I am using inbuilt Edit and delete functionalities of IG .
When I edit or delete anything in the IG , Cant save changes ,In debug following error I am getting
AUTHORIZATION WITH ID #11442180234008966638 NOT FOUND - return true
I dont have any custom authorization .
Signin user is apex admin.

Related

How to use Social-Auth-Django-App with Facebook's https://m.me/

I tried using hyperlink and supplied it with my actual Facebook Username and it's working. But the problem is my actual Facebook Username is different from the Username provided by Social-Auth-App-Django. So I tried User ID instead but it's not working either.
By the way what I'm trying to do is an online shopping website and when a user clicks the hyperlink, he/she will be redirected to the seller's Facebook Messenger account to start a conversation.
This is the first line of code that I tried which is working.
Send Message to Seller
And this is the code I used using Social-Auth-App's provided data:
Send Message to Seller
And I also tried this:
Send Message to Seller
Any idea how I can use Facebook's m.me/ using the provided data by Social-Auth-App-Django? Or if you can suggest me other ways other than m.me/ I will greatly appreciate it. Thank you very much!
First Go To Setting.py And Put This Code End Of All Codes:
AUTHENTICATION_BACKENDS = [
'social_core.backends.facebook.FacebookOAuth2',
]
Second Go To FaceBook Developer In This Address :
https://developers.facebook.com
And Make One Account There.
After go To My Apps And Then Click On Create App And Then Put Your Website Name ((Attention...If You Use Your Local Host You Need To Put One Domain Name For Your Local Ip)) And Your Email And Click On Create App ID And In Your Dashboard Looking For Facebook Login And Click On Set Up .
And Then In First Step In Web Window Put Your WebSite Name For Local Host For Example Put mysite.com:8000/ And Click On Save And Other Options Just Cross .
Now In Your Dashboard On The Left Side Click On Setting And Then Basic If You See Your APP ID And Your APP SECRET Put This Two In Your Settings.py After That Last Code .
SOCIAL_AUTH_FACEBOOK_KEY = 'Put Your App Id Code Here'
SOCIAL_AUTH_FACEBOOK_SECRET = 'Put Your App Secret Code Here'
If You Want To Take User's Email Also You Can You This As Well .
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
Now In You Dashboard Go To Settings And After Go To Basic An In Field App Domains Put Your Website Name Also Go To Settings After Advanced And Put Website Name In Domain Manager With CLick On Add a Domain .
Now Again In Dashboar Go In Products+ Part And Click On Facrbook Login After Settings And Check These Option Be Active(Yes) :
• Client OAuth Login
• Web OAuth Login
• Enforce HTTPS
• Embedded Browser OAuth Login
And IN This Form Your Are Now Also Go In This Field Valid OAuth Redirect URIs And Put This URL :
exapmle.com/social-auth/complete/facebook/
And Put Your Button In Your Website Page That Have This Login Auth :
<li>
Sign in with Facebook
</li>

cannot get previous page name on device using ionic2

I am using ionic 2.
I update my ionic version.
Ionic version 3.4.0
If user not authenticated my root page is Login Page. after user logged in and go to dashboard Page.user When click on hardware back button go to Login Page.
I Need if user authenticated click on hardware back button does not go to Login page.Display msg "Do you want to exit?"
Because I need get previous page name.
I used this Code
this.navCtrl.last();
It's work fine on browser.But not work on device.
I run my app.
I consoled the value
t {_isHidden: false, willEnter: e, didEnter: e, willLeave: e, didLeave: e…}
and its return the page name is 't'.
Then you can pass the name of the current page while you route to a new page. Then you can use that name from new page.
Example (Assume we are routing from page A to page B)
in page A
this.navCtrl.push(B,{previousPage:'A'});
in page B
class B{
constructor(private navParams: NavParams) {
let previousPage= navParams.get('previousPage');
}
}
====UPDATE=======
I cant understand why you want previous page name for achieve this. any way your requirement can achieve as following.
in your app component set root page as loginPage.
public rootPage: any = LoginPage;
Then, If user login success. route to dashboard page by calling
navCtrl.setRoot(HomePage); // here user will route to the home page and set it as root
You can re change the root page as login page when user click sign out
navCtrl.setRoot(LoginPage);
then if user is authenticated root page will be HomePage and if user click back button user will leave the app.
Hope this will help you :) enjoy Ionic ;)

How to add some relations to DynamoDB table on AWS?

I have a DynamoDB table called Posts in my iOS project on AWS Mobile Services. I would like to add Favourites feature to my app, so user can add any post from Posts table to favourites. How can I implement it using DynamoDB with AWS Mobile Services? Thank you!
In NoSQL, the database model is mostly depends on the Query Access Pattern (QAP). I am not sure whether the Mobile front end shows the post and the users who likes it or user page which list their favorite posts.
Case 1 : Post page showing the users who liked the post
You can have a favourites attribute to POST table to have the list of users liked the post.
favourites - SET or LIST data type
Example:-
Post 1 is favorite for user 1 and user 2
post 1
favourites : ["user1", "user2" ...]

Odoo website, Creating a signup page for external users

How can I create a signup page in odoo website. The auth_signup module seems to do the job (according to their description). I don't know how to utilize it.
In the signup page there shouldn't be database selector
Where should I store the user data(including password); res.users or res.partner
you can turn off db listing w/ some params in in odoo.cfg conf
db_name = mydb
list_db = False
dbfilter = mydb
auth_signup takes care of the registration, you don't need to do anything. A res.user will be created as well as a partner related to it.
The pwd is stored in the user.
User Signup is a standard feature provided by Odoo, and it seems that you already found it.
The database selector shows because you have several PostgresSSQL databases.
The easiest way is to set a filter that limits it to the one you want:
start the server with the option --dbfilter=^MYDB$, where MYDBis the database name.
User data is stored both in res.userand res.partner: the user specific data, such as login and password, are stored in res.user. Other data, such as the Name is stored in a related res.partner record.

List of users who registered in the same month as the logged user

I need to create a custom module which shows a list of users who registered in the same month as the logged user.
You have to start with learning how to create a joomla module.
Then to get familiar with joomla database functions.
Once you create the module, you have to get the active user using current user object.
Next step is to run a query to #__user_profiles table to get the active user register date. The query will be like:
SELECT `registerDate` FROM `#__user_profiles` WHERE `username` = $user_id
And then run a second query to get all users registered the same month as active user:
SELECT `username` FROM `#__user_profiles` WHERE MONTH(registerDate) = MONTH($current_user_register_date)
Good Luck!