Accessing Joomla User Id Inside Flex 4.5

Alright, I posted this over at the Joomla forums as well and figured I'd try here as well... Here's my delima:
I have a flex 4.5 app that I am trying to utilize on a joomla page and I need it to access the currently logged in user id. So, here is what I have so far: My PHP class: 
Code:
<?php class userId {
      public function getuserID($userID) {
         //Defining Joomla path, variable, and determining user id
         define( '_JEXEC', 1 );
         define('JPATH_BASE', dirname(__FILE__) );
         define( 'DS', DIRECTORY_SEPARATOR );
         require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
         require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
         $mainframe =& JFactory::getApplication('site');
         $mainframe->initialise();
         $mainframe->route();
         $userID = & JFactory::getUser();;
         return $userID;
   } } ?>
 My protected function in Flash Builder CS5: 
Code:
protected function username_creationCompleteHandler(event:FlexEvent):void                   {                         getuserIDResult.token = userId.getuserID($userId);                   }
 And for testing purposes, I just want to display it in a text label: 
Code:
<s:Label id="username" width="60"
creationComplete="username_creationCompleteHandler(event)"
text="{getuserIDResult.lastResult}"/>
 Now, I have the release build in an article in Joomla. But when the page loads, I get the following error in the Flex app: 
Quote:
Channel disconnected
Channel disconnected before an acknowledgement was received
 Now, I am pretty sure I have double checked my source code in flex through and through. So I don't think the problem is there (I may be wrong though...). And if I comment all the code out inside the PHP function and declare the userid variable to any static string it returns that string perfectly in the flex app. So my feeling is it is in the PHP class... Anyone here see where I am going wrong?

well I've tried with something much simpler and it still doesn't work. So I removed all scripts and all components and just added an mx:Button.
The button is initialised but it's creationComplete event does not get fired.
So I'm not exactly sure what's wrong.
I have a mx:Module (DashboardModule) which is loaded using Cairngorm's ModuleViewLoader and that includes the following:
        <presentation:DashboardView
            width="100%" height="100%"
            verticalScrollPolicy="on" horizontalScrollPolicy="on"
            userProfile="{shell.userProfile}"/>
DashboardView is the code I've shown you above.
But as I said, even If I remove all scripts and components from DashboardView.mxml and just leave an mx:Button with a creationComplete handler and an initialize handler, the creationComplete handlernever gets invoked.
Could this be something with mx:Module and Cairngorm's ModuleViewLoader?
I should say that the Module's creationComplete handler gets invoked and so does the DashboardView's creationComplete handler gets invoked but not DashboardView's children.

Similar Messages

  • Remote Access VPN Users with CX Active Authentication.

    I have ASA 5515 with CX for webfiltering , also have enabled remote access vpn . All my inside users are able to get active and passive authentication correctly . But for remote access VPN users , they are redirected to ASA external ip and CX authentication port 9000 but a blank page comes in and there is no prompt for authentication. I wasnt doing split tunneling , but now i have excluded ASA WAN ip from the tunnel and still have the same issue.
    The CX version we have is 9.3.1.1

    Have you excluded the VPN traffic from being NATed when traffic is going between clients?
    Please post a full sanitised configuration of the router so we can check it for configuration issues.
    Please remember to select a correct answer and rate helpful posts

  • Using LDAP group to autenticate users from inside network to Internet

    Hi team, I got an asa 5510 version 7.2.3 and i need to autenticate my users from inside network to internet using a security group in the Active Directory, anyone can help me with these?

    This might not be complete for your needs but it may give you enough of what you need without having to purchase full url filtering etc.
    Authenticate with LDAP as shown earlier in this thread, then use this aaa ldap with cut-through proxy -
    PIX/ASA : Cut-through Proxy for Network Access using TACACS+ and RADIUS Server Configuration Example
    http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00807349e7.shtml
    then do some filtering -
    ASA/PIX 8.x: Block Certain Websites (URLs) Using Regular Expressions With MPF Configuration Example
    http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a0080940e04.shtml

  • How do we display .doc files or .pdf files inside flex containers like Panel or Canvas?

    How do we display .doc files or .pdf files inside flex containers like Panel or Canvas? (i am talking about Flex web browser application and NOT air)
    thanks in advance.

    Perhaps I was not clear...
    We have a Word doc.
    We want to create a PDF doc from it.
    We want, in Word/VBA, to add content (annotation/text note=sticky) to the PDF from Word via VBA macro.
    What is the best way to do this?
    1. Use a VBA call to the PDF doc to execute the AcroJS (we would pass the content, location, etc for the note in the call) - what is this VBA call that will execute AcroJS in an PDF doc?
    2. Use AIC OLE objects to access the PDF doc.
    From your last answer - it sounds like I cannot add the annotation to the PDF from the Word VBA macro - is that correct?
    Our content is already in the Word doc - We want to execute a macro in Word that will add content to the PDF doc  - can this not be done in Word?

  • Alias to user folder inside user folder?

    For some reason I've found I now have an alias (symbolic link?) to my user folder inside my user folder. This seems odd. It was created last November, and I have no idea how or why.
    I'm wondering if it can have anything to do with the many anomalies I seem to be experiencing in Mavericks 10.9.5 on an Intel iMac, e.g.:
    • The horror of thousands of "com.apple.IconServicesAgent failed to write" messages suddenly starting to show up in Console, with com.apple.IconServicesAgent consuming huge amounts of CPU time and memory, and Finder windows not listing their contents, with a gear in the corner spinning endlessly
    • Extremely slow boot-up
    • Extremely slow opening of apps such as Safari and Mail
    • My main level "Library" and "mach_kernal" having become visible, when they originally were invisible
    It seems that my entire system has gotten extremely sluggish, and I have tried everything I know, going through countless threads in this forum, trying "fixes" that don't seem to fix anything about it. I'm desperate, and now am wondering if this odd alias has anything to do with my woes. It's very troubling.
    Thanks for any help anyone can give me

    I do not think having an Alias to your home directory in your home directory will affect your performance issues.
    I suggest you post the output from EtreCheck and let the forum analyze it.
    <https://discussions.apple.com/docs/DOC-6174>
    I suspect something more serious is going on.  Adware perhaps.
    With respect to a back pointing Alias, since anyone can create an Alias (or a similar, BUT different, Unix symbolic link), the operating system is prepared to deal with loops, and tends to notice when a request to access a file has an infinite loop Alias or symlink in the path that prevents it from actually getting there.
    You just double clicking on an Alias, that takes you back up the directory tree, is not an automated process, so you can most likely do that all day long, until you get tired of playing that game.
    An applications program that decides to walk a directory tree by opening one directory at a time and not keep track of its history, nor notice that it opened an Alias or symlink is an application program that has a bug in it.  There are not many programs that actually do this, and the few that do, have already discovered they need to either NOT follow an Alias or symlink, or know enough to maintain state information that tells them when they have a loop.

  • After update Firefox keeps returning a "Gone The requested resource /administrator/index.php is no longer available" reponse when trying to access joomla login

    After automatic update to 32.2 (then I tried to update to 33.0 beta with no improvement) Firefox keeps returning a "Gone The requested resource /administrator/index.php is no longer available" reponse when trying to access joomla login. The problem is there even when I fill manually the fileds "user" and "password" in the joomla admin login page. The problem appears in different sites on different servers, and do not occurr using Google Chrome. It's clearly a Firefox issue. Could you please give me some ideas on how to solve ?

    Works here.
    *http://www<i></i>.centrostellapolare<i></i>.it/administrator/index<i></i>.php
    Try to disable IPv6 (check for other possible causes as well).
    *http://kb.mozillazine.org/Error_loading_websites

  • I desperately need to access my User Library folder in Time Machine (Lion so = not visible).

    Hi. I installed Lion a few months ago and got a new external drive to back up Time Machine.
    Nobody told me the User Library would be made hidden in the new OS. I have been backing up regularly in the belief that all my work, settings and so on was safe.
    Yesterday my iMac (27" 2.8 Ghz Core it with 4 gib memory) suddenly went mad. Message saying finder had quit whilst trying to restore windows. Desktop was flashing, no icons clickable, no external disks readable. Could access some progs and terminal, but nothing else. Could not get into the history folder to trash various plists and so on as the folder is hidden and the alt Go wouldn't work. The Finder just wouldn't do anything.
    I have sorted it out BUT I have lost my address book entries, my browser booksmarks, my desktop shortcuts and my iCal entries. I need to access my User Library on my Time Machine. Is there a way?
    I cannot believe I have been religiously backing up my stuff but Apple has made it so I can't access my backup of one of the most important folders on my Time Machine???
    Is there anyway of getting into this from Terminal or something? I will never be able to get back all the bookmarks and stuff I've been researching for years. I have it backed up on two different hard drives, both of which have 'invisible' library folders. I have make the folder visible now, for future backups, but it's after the horse has bolted. I am furious, and just feel like bursting into tears because of all the time it's going to take me to get all my work back. I can't tell you how stupid this was, Apple.
    If someone could help I'd be really grateful. I've got older backups but they are so old they won't get back my recent stuff.
    Thanks.

    select Finder
    hole option key and select Go in the menu
    Select Library
    Enter Time Machine
    You should be seeing all the versions of you Library folder.

  • Ssrs security access for users on a different domain

    Hi
    We are using ssrs 2008 r2 and have added a new domain to our network as we are working with another company.
    Our original domain was say "DomainA" which can access all our reports, how do we give access to the new domain "DomainB" access to our reports?
    We are unable to add DomainB users to our AD security groups so I have created a windows groups called SSRS_DomainB_Users and given them access to our parent folder and also added them into site settings as a system user.
    What is the best way to deal with this?
    Users in DomainB will eventually be added to DomainA and DomainB will then be deleted.
    One of the users I am testing with gets an error message :
    User 'Domain name/user' does not have the required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed.
    Thanks

    Hi Nasa1999,
    According to your description, you want your reports can be accessed by user from different domain. Right?
    In this scenario, we should do Internet Deployment for your reports so that users from different domain can access the reports. Please the articles below:
    Planning for Extranet or Internet Deployment
    Using Reporting Services in an Internet/Extranet Environment
    SQL Server 2008 Reporting Services
    for Internet deployment
    Reference:
    SSRS reports
    global access
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Database Studio 7.9.08.09 -  Could not access to user management; Deleting old settings and reinstallation did not bring a change -- database studio deinstallation cannot be performed anymore

    Hi Community,
    for a few months I have been struggling with a  SAP Max DB database Studio issue and finally, I had to give up the idea of being able to fix this on my own. I am desperately seeking for help and I hope that you may be able to give me a hint, advice or even a solution.
    This is what happened:
    I used to run Windows 7 on 32bit. I also had Database Studio installed - which was running fine then.
    After a harware upgrade, I am running now Windows 7 on a 64 bit System. All my files from my local disk (C:\) have been restored and copied onto my new system.
    I reinstalled Database Studio Version 7.9.08.09 onto my new System.  But on the first try to start the program I received the error that said "Could not Access to user Management.See Window -> Show View-> Event Log Viewer for more Details."
    However the Event Log Viewer was empty.
    After searching the web for a solution, I followed the advice given in this community and deinstalled Database Studio and deleted the C.\Users\MyAccount\sdb folder manually.
    I reinstalled Database Studio and started it as Administrator.
    However, the error is still appearing.
    And, what makes it even worse is : now I am not able to uninstall Database Studio anymore.
    When I run SAP MaxDB Installation Manager and select the instance of database Studio to be uninstallled I am receiving the error:
    "ERR: Unhandled Exception: Can't call method: "GenPackageList" on an undefined value at SDB/Install/Gui/Dialogs/SelectInstance.pm line 328"
    Any advice is highly appreciated.
    Thanks,
    Agnieszka

    Hello Yashwanth,
    thank you for your quick Response.
    Yes, I downloaded and installed the 64 bit Version of dbstudio.
    I downloaded and ran the following .exe file: maxdb-studio-win-64bit-x86_64-7_9_08_09.exe
    I am running the following Java-Version:
    Java Plug-in 1.6.0_45
    Using JRE version 1.6.0_45-b06 Java HotSpot(TM) Client VM
    I myself am not a SAP customer. However, the Company I am working for is a SAP customer.
    Can you explain in Detail, how to create a ticket with SAP?
    Thanks,
    Agnieszka

  • HT4798 How do I gain access to Users & Groups preferences when I cannot even log in.

    I only have one apple ID linked and I cannot reset my password via the pop up box and cannot access the user groups as I cannot even log in.
    Can anyone help.
    Thanks
    Matt

    Reset Password
    OS X 10.6 Snow Leopard
    Follow the instructions in  second and third boxes.
    Reset Password using Recovery HD
    OS X 10.7 Lion /10.8 Mountain Lion
    Follow the instructions in the first and third boxes.
    http://pondini.org/OSX/Password.html
    Note
    Keychain
    I don't remember my original (former) account password
    https://support.apple.com/kb/HT1631

  • Windows 7 Desktop synchronisation - Windows cannot access \\server\users\name\desktop

    Hi there
    My client has a laptop which won’t load the desktop when disconnected from the network. When you log on (while disconnected) you get the error
    “Windows cannot access \\server\users\name\desktop”
    Works as expected while connected to the network.
    The server is a Windows Small Business Server 2003 with active directory etc. and roaming profiles turned on. This issue does not occur on other workstations/laptops.
    When I check the Users folder on the local system drive there is not a desktop folder. I assume this is the issue although I’m not sure how you would force windows to create one or why one hasn’t been created?
    This is a brand new laptop so my initial reaction was to reset the laptop to factory state and then add the laptop back in to the domain. After this process the issue was still present!
    I guess the only thing I should mention is that this was shipped as a Home Premium laptop and was then upgraded to Professional using an upgrade key.
    I have checked Control Panel, System & Security, System, Advanced, User Profiles and the account shows as Local with Roaming Profiles greyed out.
    Any ideas?
    Martyn Fewtrell
    [email protected]
    Martyn Fewtrell TNC (IT Solutions) Ltd Email: [email protected] Web: http://www.tncit.co.uk

    Hi,
    I am just writing to check the status of this thread. Was the information provided in previous
    reply helpful to you? Do you have any further questions or concerns? Please feel free to let us know.
    Regards,
    Alex Zhao
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Alex Zhao
    TechNet Community Support

  • How can I access my user folder on a second boot partition?

    Hi there. Thank you for reading this. I am at a bit of a loss although I have searched several forums to find someone having the same problem:
    I use my Macbook Pro in the office and at home. To keep things strictly apart and have to separate Time Machine backup procedures, I have divided my harddrive into two boot partitions ('office' and 'private') and installed Mountain Lion on both of them. Now occasionally when I am at the office I would like to access my  user folder on 'private' to retrieve a file from the documents folder there (e.g. a paper I gave in my free time but would like to send to a colleague). Now although I see the 'private' volume, and the other user folder and the Documents folder in it with a red 'No Access' badge, even when I  set read/write permissions via Command-I > Permissions for my current account, I do not see any files in it apart from Microsoft User Data. I have tried enabling the root user but with the sam result.
    Do I really have to shut down the computer and boot with the 'private' boot volume in order to access the files on 'private'>user?
    Looking forward to your suggestions! Thank you in advance!
    Christian

    To solve this issue permanently, is to first disconnect both TimeMachine drives.
    Boot into one partition and consider it history, make a note of everything, apps, export bookmarks, serial keys and files to a regular external drive. (non TimeMachine)
    If on a hard drive, consider the first partition for performance, the second one is going to be slower. (SSD no need)
    Next what you do is boot into the first partition and use Disk Utility to erase (with zero option if a hard drive) the other partition. Then use Carbon Copy Cloner to clone the first partition to the second. (should be about equal sizes or tweak before cloning.)
    Repair permissions on both partitions in Disk Utility.
    Next boot into the second partition and install/uninstall apps and files. etc and set it backup up the way you had it.
    Once your sure, then update TimeMachine for each one.
    Now you will be able to easily access the other bootable partition as long as your logged into the same account name on the first partition., in other words you can access the same named account on both partitions and trade files without rebooting.
    Because it's a clone, you have the same access privileges to the files on the other partition.
    If your a power user, your going to find bootable clones are a much superior option than TimeMachine
    Most commonly used backup methods

  • Best practice for select access to users

    Not sure if this is the correct forum to post, if not then let me know where should I post.
    From my understanding this is the best forum to ask this questions.
    Are you aware of any "Best Practice Document" to grant select accesses to users on databases. These users are developers which select data out of database for the investigation and application bug fix.
    From time to time user want more and more access to different tables so that they can do investigation properly.
    Let me know if there exists a best practice document around this space.
    Asked in this forum as this is related to PL/SQL access.

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version.
    >
    Are you aware of any "Best Practice Document" to grant select accesses to users on databases. These users are developers which select data out of database for the investigation and application bug fix.
    From time to time user want more and more access to different tables so that they can do investigation properly.
    Let me know if there exists a best practice document around this space.
    >
    There are many best practices documents about various aspects of security for Oracle DBs but none are specific to developers doing invenstigation.
    Here is the main page for Oracles' OPAC white papers about security.
    http://www.oracletechnetwork-ap.com/topics/201207-Security/resources_whitepaper.cfm
    Take a look at the ones on 'Oracle Identity Management' and on 'Developers and Identity Services'.
    http://www.dbspecialists.com/files/presentations/implementing_oracle_11g_enterprise_user_security.pdf
    This paper by Database Specialists shows how to use Oracle Identity Management to limit access to users such as developers through the use of roles. It shows some examples of users using their own account but having limited privileges based on the role they are given.
    http://www.dbspecialists.com/files/presentations/implementing_oracle_11g_enterprise_user_security.pdf
    And this Oracle White Paper, 'Oracle Database Security Checklist', is a more basic security doc that discusses the entire range of security issues that should be considered for an Oracle Database.
    http://www.oracle.com/technetwork/database/security/twp-security-checklist-database-1-132870.pdf
    You don't mention what environment (PROD/QA/TEST/DEV) you are even talking about or whether the access is to deal with emergency issues or general reproduction and fixing of bugs.
    Many sites create special READONLY roles, eg. READ_ONLY_APP1, and then grant privileges to those roles for tables/objects that application uses. Then that role can be granted to users that need privileges for that application and can be revoked when they no longer need it.
    Some sites prefer creating special READONLY users that have those read only roles. If a user needs access the DBA changes the password and provides the account info to the user. When the user has completed their duties the DBA resets the password to something no one else knows.
    Those special users have auditing on them and the user using them is responsible for all activity recorded in the logs during the time the user has access to that account.
    In general you grant the minimum privileges needed and revoke them when they are no longer needed; generally through the use of roles.
    >
    Asked in this forum as this is related to PL/SQL access.
    >
    Please explain that. Your question was about 'access to different tables'. How does PL/SQL access fit into that?
    The important reason for the difference is that access is easily controlled thru the use of roles but in named PL/SQL blocks roles are disabled. So those special roles and accounts mentioned above are well-suited to allowing developers to query data but are not well-suited if the user needs to execute PL/SQL code belonging to another schema (the app schema).

  • Unable to provision Business Rules access for users

    Hi all,
    Our analytic server is properly configured in Shared Services : we can correctly create users, provision Essbase access for those users, change password, etc...
    An application business rules is visible in the left pane of shared services, but we are not able to provision Business rules access for users.
    When we try to provision access for a user, we have only access to the Analytic properties.
    What's going wrong ?

    It sounds like the user you login to HSS with hasn't been assigned with "Provisioning Mgr" rights to business rules.
    Get the HSS admin user to grant you these rights and you should then be able to provision users to use Business RUles.
    Gee

  • How do i reset admin password. no disc but system automativally logs me in as administrator and can access root user mode

    I recenly got this macbook, MA&00LL/A, max OS X, V:10.4.11, 2GHz IntelCore 2 duo, 2GHz, When I power up it automatically logs me on as administrator but prompts for password when I try to access/change certain features.  I got the macbook from my cousin who has forgot password and has lost disc.  I can access root user mode but as iam unfamiliar with apple I am hesitant to delete anything without making things worse. Is their anyway I can reset this admin password without the disc or simply delete this user and reconfigure system as myself as administrator. step by step instructions would be appreciated at this stage till i familiarize myself more.  Any help would be greatly appreciated.  If it came down to buying a disc, how much roughly do these cost???  thanks again

    If you don't have your install disks you can get the 10.4 gray disks by calling Apple Store Customer Service at 1-800-676-2775 They can send them to you for about $16 per disk plus S & H. Just give them your serial number and they'll know which ones you need.
    To find your serial number go to the Apple in the upper left corner and select About This Mac, then click on More Info, the System Profiler will then come up. The Serial Number (System) is down near the bottom of the Hardware Overview list.
    If you don't have your install disc handy,then follow these steps
    1. Start up in single-user mode (hold Command-S as thecomputer starts up).
    2. Type: mount -uw /
    3. Press Return.
    4. Type this: passwd (user's short name) Replace "(user's shortname)" with the short name of the user account whose password you wish to reset. If you are not sure what the account name is, you can get a list of usernames by typing: ls /Users
    5. Press Return.
    6. Enter a new user password.
    7. Press Return.
    8. Type: reboot
    9. Press Return.

Maybe you are looking for

  • Oracle 11.1.0.6 - Can more than one database work of the same installation

    I am in the process of setting up 3 production 11.1.0.6 databases in a RAC Linux RH4 environment (approx 40GB each in size), question is can I get all 3 databases to work of the one Oracle Database installation i.e. can all three separate database wo

  • Lithtroom 5.X exit problem

    After some random time, I can't exit Lr trough File Menu/Exit, or even if I use shortcut Ctrl Q. Instead of that, LR applies preset. I have same problems with W7, W8, Lr4, Lr5. Maybe the bigger amount of my presets crashes a part of Lr. Other functio

  • Updated to 10.1 now old project opens in TextEdit instead

    So I updated FCPX and libraries to 10.1. My problem is an old client just emailed me to do a new edit on a project that was using the last version of FCPX.  No problem right?  It's on a portable hard drive.  I plug it in expecting an Update prompt an

  • Lookup/Find/Search Function

    Hi All, I'm sure this may have been asked before but I would like some help if possible. I've got the following dataset: I tried to use the VLookUp Function in the following way: =VLookUp(B2,$A$596:$B$851,1,FALSE) however it isn't working in the desi

  • Route determination steps

    Hi, I am in the learning process and would like to read some simple documents on step by step procedure for configuring route and to define Route determination. Does anyboy have some good documents on Route determination? Thanks in advance. Cheers VJ