Building out dynamic app, need a bit of advice

Hello all !
I have been working on a flex app, that makes users sign in.  This is done by checking their username and password against those defined in a mysql database.  A field in this database is "ID" which is a unique, a primary key, to that user.
THe app should then display data only relating to that person.
At the moment i have the app working fine, if in my scripts i define an "ID" number to look for.
I will try to explain some more . .
I am using AMFPHP to popular datagrids with data taken from the same mysql database that was used to log in.  These scripts being used, pull back data only relating to a certain "ID" at the moment this is built into the script.
I want to have it so when the user logs in, flex takes their ID number and then pushes that to all other relevant scripts that are loading data.  SO then when a user logs in, only their data is shown.  As all data in the database is linked to an ID.
For instance:
If i had the following users table - used to log in
| ID  | Username | Password |
| 1   | Bob              | pass         |
| 2   | Carl              | rawr         |
And then the following data table - used to display data
| ID | Data               | Link |
| 1  | This is string 1   | 1    |
| 2  | This is string 2   | 1    |
| 3  | This is string 3   | 2    |
| 4  | This is string 4   | 2    |
| 5  | This is string 5   | 1    |
| 6  | This is string 6   | 2    |
Is it possible to have it so, you log in, using a php script, and then your ID is returned, then fed into some AMFPHP scripts, which will be used to determine which strings you can see?
So that Bob can see String 1 2 and 5 while Carl can see 3 4 and 6
Thanks in advance !

The work of filtering the data for the particular user should be done by PHP/MySQL or whatever other server-side solution you may be using. It's best to have your have your Flex app be ignorant of details such as this. On the Flex end, keep it simple by assuming that the data provided is correct and go straight to plugging it in (of course with some exception handling).
You probably don't want to be passing that user id around in the open. Make use of PHP sessions.

Similar Messages

  • Need a bit of advice regarding sync

    Hi all,
    Just looking for a wee bit of advice.  I've got my son an ipod touch 4 for Christmas and was wonder how to set up itunes for him.  He's only 7 and so I was going to add him to my itunes account so I can add something like a fiver a month for him to use for apps/games on it or something like that.  However, I don't want it to synch to my iphone.  Is there a way to stop that or should I set him up an email and set up a new account for him?
    Any advice greatly appreciated
    Thanks

    In itunes you can set up allowances, for the article about them: type HT2105 in the search bar on this website when support is clicked and you should get the article to pop up on how to set up allowances.

  • Help! Newbie needs a bit of advice :)

    Trying to put up a website in tables & cells....can't
    seem to get answers to a couple of Q's.
    Any experts out there that could offer insight would be much
    appreciated!
    Here's the sitch :
    Down the left side of my page is a list of services, I want a
    mouseover action on each of these services to cause the HTML text
    to the right of the services list to change to an explanation of
    that service, and to change the picture to the right of that text
    (in yet another cell) to a picture of that service. So one
    mouseover will cause both of the two neighboring table cells to
    change their content. THE TEXT IS IN HTML and cannot be an image
    for SEO purposes.
    The second question regards a different page. I have text
    that is too big for its table cell. I was wondering how to put a
    scroll bar in a table cell.
    If anyone knows the answer or can point me in the right
    direction it would be so helpful!!
    Thanks :)
    eLi

    eLi The Girl wrote:
    >
    > Trying to put up a website in tables &
    cells....can't seem to get answers to a
    > couple of Q's.
    > Any experts out there that could offer insight would be
    much appreciated!
    > Here's the sitch :
    > Down the left side of my page is a list of services, I
    want a mouseover action
    > on each of these services to cause the HTML text to the
    right of the services
    > list to change to an explanation of that service, and to
    change the picture to
    > the right of that text (in yet another cell) to a
    picture of that service. So
    > one mouseover will cause both of the two neighboring
    table cells to change
    > their content. THE TEXT IS IN HTML and cannot be an
    image for SEO purposes.
    Your going to have to use some kind of layer/s for that.
    Use 'settextofLayer' under the 'behaviours' in Dreamweaver.
    Heres an article explaining how to use it:
    http://www.dreamweaverresources.com/tutorials/settextoflayer.htm
    > The second question regards a different page. I have
    text that is too big for
    > its table cell. I was wondering how to put a scroll bar
    in a table cell.
    Here an article form the same website detailing how to put a
    scrolling
    area into a table cell:
    http://www.dreamweaverresources.com/tutorials/scroller.html
    > If anyone knows the answer or can point me in the right
    direction it would be
    > so helpful!!
    > Thanks :)
    > eLi
    >
    >
    Heres a simple example of code using 'settextoflayer and a
    scrolling area:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    #contentLayer {
    position: relative;
    width: 200px;
    border: 1px solid #000;
    top: 0;
    left: 0;
    #contentLayer p {
    margin: 0;
    padding: 0;
    #right {
    width: 200px;
    #myTable {
    margin-left: auto;
    margin-right: auto;
    #myTable td {
    vertical-align: top;
    #scroller {
    height: 150px;
    overflow: auto;
    </style>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++)
    x=d.forms
    [n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers.document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_setTextOfLayer(objName,x,newText) { //v4.01
    if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText));
    document.close();}
    else innerHTML = unescape(newText);
    //-->
    </script>
    </head>
    <body>
    <table id="myTable" width="600" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td><a href="#"><p
    onMouseOver="MM_setTextOfLayer('contentLayer','','Good
    Morning')">Link
    One</p>
    </a>
    <a href="#"><p
    onMouseOver="MM_setTextOfLayer('contentLayer','','<p>Good
    Afternoon</p>')">Link Two</p></a>
    <a href="#"><p
    onMouseOver="MM_setTextOfLayer('contentLayer','','<p>Good
    Night</p>')">Link
    Three</p></a></td>
    <td id="right"><div id="contentLayer">
    <p>Good Morning</p></div></td>
    <td id="right"><div id="scroller">
    <p>This text scrolls once it reaches a height of
    150px.</p>
    <p>This text scrolls once it reaches a height of
    150px.</p>
    <p>This text scrolls once it reaches a height of
    150px.</p>
    <p>This text scrolls once it reaches a height of
    150px.</p>
    <p>This text scrolls once it reaches a height of
    150px.</p>
    </div></td>
    </tr>
    </table>
    </body>
    </html>

  • Right, I need a bit of advice...

    Im going to buy a new Mac soon.
    Im probably going to purchase the iMac Intel Core Duo 2GHz, but Ive recently heard about a Mac Pro.
    What is this, when will it be released (I heard its yet to be released) and will it be superior to a MacBook pro 2.16 GHz Intel Core Duo (In terms of playing Battlefield 2) ?

    I just purchased a new iMac Core Duo. Speaking about current Apple products I can tell you I feel I made a mistake.
    I am reminded of what an old Navy Master Chief once told me. "Ensign, never fly the 'A' model of any airplane." The same thing applies to computers.
    In my experience this machine does not have all the bugs worked out. I am very disappointed in its performance, most of which seem to be hardware/quality control related.
    Apple phone tech support is its usual high quality, and I certainly have no complaints about their efforts, but they have been unable to resolve my problems, and there are similar unanswered problems posted on the Core Duo Discussions.
    If you have a Mac that is getting the job done for you, I would wait until they work the bugs out of this one. For a list of all the problems folks are having with the new Core Duos check that discussion board.
    Doug

  • Need a bit of advice....

    Long and short i just got a new HP and i knew for gaming i was gonna need to bump up the video card for my gamin experience. FYI, its the HP modle number    A4317C. Amd Athalon  2.7GHz, 4 gig ram, and i think 500g HD, anyway. i am looking at 2 cards at bestbuy.com. both are nvidea, and i should be able to use them both, please tell me if i am wrong. here are the cards:
    Asus - NVIDIA GeForce GT 240 1GB DDR3 PCI Express
    or
    Asus - NVIDIA GeForce GTS 250 1GB GDDR3 PCI Express
    i am battleing the numbers in my head as to how much i really wanna spend. but my BIGGER question is just to make sure these will work, and if not i am open to suggestons. Also, does going to an HDMI cable make a big difference in the gameing clarity? i would think so, but if not then i am not gonna spend the $$ to buy the HDMI cable...
    Would appreciate any and all tips.
    Thanx
        GraFF

    Well, lemme make sure I am clear on the difference between DVI and hdmi.... The video card has the old school VGA plug, a flat hdmi plug, and a goofy sideways pinned lookin plug( looks like the VGA but with an extra flat/sideways pin), However... My monitor only has a VGA plug and a flat hdmi plug, so should I get a dvi to hdmi adaptor or should I buy a hdmi cable?? Or just scratch both and stay with the VGA cable..... Now we are still back to the 2 video cards.... Do I dump the $160 or do I go cheap and get the card for $110.... I guess what I am lookin for is someone to tell me that the $160 card is the way to go cause it's a wicked sweeet vid card....

  • Need a bit of advice before I update to Win7, or perhaps throw my laptop through a wall

    I've got a month-old G60, and Vista just crashed (blue screen on any non-safe-mode boot-up) and I was wondering if I will be able to install windows 7 to a computer in this state.  The reason I ask is that I don't want to have to take it into a repair-shop, considering that windows 7 ships on wednesday and I might be able to solve the problem with a new OS.  Just so you know, I tried system restore at various restore points to no avail, and I have no recovery discs because the disc creation program would not work before this happened--and, again, I would rather not have to purchase new discs when a new OS would fix it.
    Any reply would be repaid a hunderdfold in warm fuzzy karma, I`m sure.
    Thank you so much.
    -Geoff

    Have you tried pressing F10 for the System Recovery at the very beginning of the startup. That should take you to the option to reformat your computer to the way you bought it and you might loose your files. 
    Either way it might erase your files if you do the upgrade because it will bring everything from vista to 7 and the error might do or disrupt something. So the best way is to reformat the computer and then do the upgrade or do a Custom install and that should put all the files in windows.old and you can grab what you want from there and when you did you can delete that folder as it takes too much space if there is nothing you need. But you will need to install all the programs from there and in the folder swsetup, the programs that came with HP should be there.
    Hope this helps. 

  • Need a bit of advice please

    I have a couple of swf that I use on my iweb site. Can someone explain to me if there is a significant advantage to using the swf file directly or to use an html file that accesses the swf.
    The html is of course lighter but it still has to make the swf work, so, do I save load time?
    I am not understanding the function of the html generated when I publish the flash file.
    Thank you for your help.
    Mireille

    In my samples I use the iframe/object element to display a HTML page within iWeb. You can also use the object/embed code to display the flash file in the HTML Snippet
    The html filesize is only a few hundred bytes. But it depends on the flash file whether it's better to use a HTML page or the object code with the flash file.
    Sometimes there's a problem with the relative path to the flashvars when using object in the HTML Snippet. Then a HTML page is better.
    Also, when you make changes to the object or HTML code in the HTML page, you do not have to update the HTML snippet in iWeb.
    http://web.mac.com/wyodor/iFrame/

  • Building an AppCloud App for use within your organization only.

    I am re-posting this from, Register your App because, it was a good point this should have been a separate discussion.
    Scott
      Scott Kent Jul 14, 2014 4:56 PM
    I am trying to get more details on how to Build/Register "Private" AppCloud Apps and confirm at design time that we can deploy our in-house AppCloud Apps on several of our Eloqua instances without publishing them.
    My assumption is that one would setup the App under the Provider section for each of the Eloqua instances so that each Eloqua Instance can see and install our our in-house private app and use it without publishing. I worry about this method because it give the impression the AppCloud App is in development or testing.
    Or
    I was hoping there was some way to officially register our app so we are using a production workflow but our app is not published or listed anywhere?
      T.J. Fields Jul 14, 2014 6:06 PM (in response to Scott Kent)
    Hi Scott,
    The best practice here would be for you to:
    1. Register as a Provider in a development instance of Eloqua.
    2. Build out your app and Register it, along with your Service(s) under that Provider.
    3. Whitelist any Eloqua client installs that you wish to allow to use your App.  Do this by clicking the Publish to Another Site button.
    4. Give the App install URL (found at the bottom of the App Details page under Catalog) to any of those clients that you whitelisted to use your app.
    This way, only those clients that you've specified will be able to install and use your App, and it's not listed anywhere.  You could also click the Publish to App Cloud button, which simply whitelists every install.  The App will never actually be listed anywhere, as there is not yet a mechanism in the framework to do this.  The only way to find and install your App is by using that install URL, so you'd have to give it out.
    If you are a client that is building an App for use within your organization, you could also use your company's Eloqua install to register your provider, but as a development partner, your developer instance is intended to be used to register and manage your services.
    Hope this helps.

    Thanks, scott.kent ! I'm sure many will benefit from your great post!

  • [Beginner] build a calendar app for each team using out of the box calendar app

    Hi all,
    First of all, I'm a beginner in sharepoint and need some advice in the following case:
    We want to to create a calendar for different teams. Each team has it's own calendar to schedule a standby (all day event) for each day. In the overall view we want to see for each team the schedule who's standby (overlay). My preferred solution is to create
    a new site and use the calendar app and customize this a little bit.
    I tried to do this by creating a new calendar app and adding different views for each team. I have set the group calendar option on true so we can add users to each team calendar view. Unfortunately, I have understand that it is not possible to set default
    users for each view. I´m also looking how I can set a default title filled with the name of the view when you add a schedule, I tried to do this with a calculated value but I can´t get that working. An other question is, can I set permissions on each team
    view who can edit the schedule or is it better to create for each team an own list? For example, I want to disable that team members can edit schedules in the past, only schedules in the future is editable.
    I'm not not sure if the out of the box calendar app is suitable for my case or I have to look futher in other solutions. Any advice is welcome!

    Hi,
    According to your description, my understanding is that you want to build a calendar app which can add default users for each calendar view and set default title when adding schedule.
    For adding default users in each group calendar view using custom JavaScript, here is a detailed code demo for your reference:
    SharePoint Group Calendar, Adding default users
    For adding default title when adding schedule, I suggest you can add some Jquery to fill the title textbox when the schedule new form loading. You can add the Jquery under PlaceHolderMain tag of calendar new form page.
    Set Textbox value-using JQuery 
    For setting permission in the each team view, I suggest you can check the schedule end time in the edit form, if the schedule time is before the current date time, then you can set all the fileld read only using Jquery.
    More information:
    Jquery function to compare date with current date
    Jquery set read only
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do you find out more about an App (needs login?, wi-fi?)

    Sometimes I purchase an app then find out that I can't use it without creating an account or that it needs an internet connection. Is there any way of knowing ahead of time which apps need what? I thought that, that would be a standard, but it isn't.

    The need for an account (for a particular App) or the need for a particular App to connect to the internet is dependent upon the App itself and the person who wrote it. Each App is written by "a bloke (or girl) in his or her bedroom", or an independent company, not by Apple.
    To determine whether an App requires either of these things, you need to research the App a bit more. In the App Store, each App should have a description (and you may need to click ther more button to see all of it) and also should have a "Support page" link. The support page should take you to the App developer's website, where I would hope to see all the information I need. But it isn't always like that.
    So it's down to you to understand what the App will do, what it needs in order for you to get the best from it and to do your own research to find all that out. There have been Apps I haven't bought because I haven't been able to get enough information about it. That's life, unfortunately.
    Phil

  • I am signed into the App Store on my iphone 4 and one of my apps need updating and my brother was signed into it but its like its locked to his Apple ID I have tried signing out and turning my phone off its just not working

    I am signed into the App Store on my iphone 4 and one of my apps need updating and my brother is signed into it because I didn't have any credit to make an ID so he signed in so I could download apps but its like its locked to his Apple ID I have tried signing out and turning my phone off its just not working please help.

    Apps are locked to the Apple ID that was used to download them. You will have to sign in as your brother in order to update it.

  • When the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently.but in fact,when the app in background ,the app need data update to make the

    when the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of  trajectory replay come ture。in fact, we have added function when the app  is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when  the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
    the blow is the content of the review team email:
    We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
    We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
    It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
    For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
    If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
    "Continued use of GPS running in the background can dramatically decrease battery life."
    Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
    We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
    - complete details of your rejection issue(s)
    - screenshots
    - steps to reproduce the issue(s)
    - symbolicated crash logs - if your issue results in a crash log
    If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.

    Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.

  • I'm just wondering when IOS7 will come out for Ipod 4th gen. because half the free apps need the new IOS!!

    I'm just wondering when IOS7 will come out for Ipod 4th gen. because half the free apps need the new IOS!!

    Some apps have older versions available.
    Try this if you want an App that says you need iOS 7 or later:
    Go to iTunes on a computer or on a device running iOS 7 and find the app you want and download it using your Apple ID and password.
    Now go back to your iPod Touch Gen 4 and go to the App Store and tap updates at the bottom right, then tap Purchased at the top.  Find the app on the list that you just downloaded on the computer (or other device) and tap the cloud to download it.  If it has an alternate version available that is compatible with your iOS, it will prompt you and allow you to download that.
    Source: http://support.apple.com/kb/ht5919

  • Studio Build out I need advise

    I acquired some space and am about to build it out. I need your advise. I am thinking 2x4 lumber, sheetrock walls with dead air spacing between walls for professional additional "sound" proofing (between walls), also double walling for control room Dual glass and so fort. Can you guys please help me out with advise. Is there maybe a good solid comprehensive book just for studio building/remodeling? I hope that if there is, it sticks to the core facts and information, I am not interested in Protons, neutrons, or Atoms,
    Thanks in advance

    Dead air and mass absorb sound and provide isolation. The dead air concept is what double-wall construction is based on. How far apart the walls are spaced will have a bearing on what frequencies are absorbed. "Floating" the walls and floor on dense rubber blocks provide two-way isolation (see http://auralex.com/soundisolation_uboat/sound_isolationuboat.asp ). The concept of mass stopping sound: imagine covering a wall with either lead sheeting or cloth of equal thickness to try to stop sound from passing through. Which will absorb more sound? Of course the lead will, because it's denser, i.e., has more mass. But instead of lead you could use rubber sheeting (see http://auralex.com/cstudio_construction/c_studioconstruction.asp ).
    So that's soundproofing and isolation, and they're related to but still very different from acoustically treating a room with quadriatic diffusers, foam to absorb high frequency reflections, etc.
    Advice? Hire a studio designer or at least consult with one. I believe that Auralex and some of the other similar companies offer consultation services. Meanwhile, educate yourself on the fundamentals of sound proofing and acoustic treatments. Oh, wait, you're doing that already by posting!
    Best of luck!
    Message was edited by: iSchwartz

  • If i buy a game or app from the itunes and a new version of that game or app comes out do i need to buy it again

    if i buy a game or app from the itunes and a new version of that game or app comes out do i need to buy it again

    It depends on how the developer chooses to release the new version. If they release it only as an update to the existing app in the iTunes Store then no, you won't have to buy it again. If they release it as a new app - usually they'll change the name slightly - then you will have to buy it again.
    Regards.

Maybe you are looking for

  • How do I connect two ipod's to one computer

    I own an 5th Gen IPOD, I am buying my wife a Nano for Christmas. How do I connect both to the same computer, yet keep the ITunes and therefore IPOD update seperate? IPOD 30GB   Windows XP  

  • Encrypt/decrypt in XML

    Hi all, I've got a test program I'm running that does the following: Take servername, username, pwd from command line, and encrypt them. Write an encrypted XML document (see below). Read the encrypted document, and write a decrypted version of the sa

  • Poor quality "still" photo

    I'm using Premiere Elements 12. When I'm choose "Tools", "Movie Menu", Then choose from a "Menu Theme", I am given the option of inserting a still photo. However, the quality of the photo in my final product is reproduced with VERY POOR resolution. I

  • Cannot update adobe reader 9.5.1

    Hello: I have Adobe Reader 9.5.1  installed. I received automatic notification of an update to this. But towards the end of the installation process, I'm told that the update failed because of Error 1321 involving insufficient privilege to modify a f

  • Freezing while exporting out of premeire cs6?

    I am having problems exporting out of premiere cs6. It completely freezes halfway, all of my settings match, does anybody know why this is happening?? please help.