One Table more than one Relationship to same Table

Hello,
I have the following scenario.
One Table called Hotel and one Table Called Competitor. Each hotel can have several competitors. So i structured the tables in my Azure SQL database like this:
Hotel:
HotelID (int, Primary Key)
Name (String)
etc.
Competitor Table:
ComeptitorID (int identity Primary Key)
HotelID int
CompetitorHotelID int
When i import the tables in my LS Project i get some issues, like the autocomplete box are not filled up.
Is there a problem if a table has two references to the same table.
Thank you so much for amy help

Hi, this setup works in LightSwitch built in the intrinsic data source.
Hotel <Zero_or_1-to-Many> Competitor <Many-to-Zero_or_1> Hotel
So a hotel can have many competitors and a competitor can compete with many hotels.
Is it possible for you to switch to this?
Cheers
Dave
Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

Similar Messages

  • CRS Install hostname being used by more than once for the same node.

    Hi, we're installing The Oracle Clusterware and on the Cluster Configuration screen of the universal Installer (the one were you specify the clustername and clusternodes) we get the following error message in a dialog box when the next button is clicked:
    "You must enter unique values for the public node name, the private node name and the virtual hostname for all nodes in the cluster. The name, node1, that you entered is being used by more than once for the same node."
    Has anyone experienced this error message before and know what the cause is?
    Could it be a problem with the /etc/hosts file?
    Thanks in advance,
    M

    Make sure you allocate separate IP addresses on your network for the VIP addresses on each RAC node (this is not the same as the machine IP already configured on the OS).
    Also, the installer may complain if your private and public IPs are configured under the same subnet.
    Finally, as mentioned before, check that name resolution for all the IPs to be used. On all RAC nodes, your /etc/hosts file should be configured with:
    - public name and IP addresses of ALL nodes
    - private name and IP addresses of ALL nodes
    - VIP name and IP addresses of ALL nodes
    Hope that helps
    B.

  • The report displays more than 3000 pages with same content.

    Respected Sir
    I have a report with form letter layout.
    The report contains only one page,but while running the paper layout ,the report displays more than 3000 pages with same content.
    please anyone give a solution to this problem

    I think there is no bad joining. b'se when the querry is executed in sql, it is working properly(means returns only one record) . This problem is not for a particular report. Any report using the "form layout", the same problem occurs.
    Why this problem occurs. How can we solve it.
    Bye

  • Can I download Photoshop cc more than twice on the same computer

    I had problems with my computer,can I download Photoshop CC more than twice on the same computer?

    Hi problm,
    Yes, you can , it will be counted as second activation if you have not deactivated the previous install & activation.
    I have checked & found that you have deactivated from one machine & it is active on one computer, this entitles you an install.
    Incase it does not help you, please contact adobe http://adobe.ly/yxj0t6
    Regards,
    Rajshree

  • Error: An attribute cannot appear more than once in the same start tag

    Hi Everyone,
    when i run the page sometimes it works fine but sometimes it throws Compilation Error as below.
    "Error(502,1224): file:/C:/Jdeveloper/jdevhome/jdev/myhtml/OA_HTML/fwk/t/Session_2055663493/region1.uix<Line 502, Column 1224>: XML-20124: (Fatal Error) An attribute cannot appear more than once in the same start tag."
    And i delete the particular file from the path and run the page so this time it works fine.
    But later after sometime i get the same error but the session number will be changed, then again i need to delete it and run.
    What can be the permanent solution for this issue?
    Plz let me know any suggetions.
    Thanks.

    Seems like the mdl file is corrupted or was not generated correctly.
    Can you try to create the mdl file again and then try the import ?
    If it doesn't work then try contacting Oracle Support.

  • HOW TO IMPORT DATA MORE THAN ONCE FROM THE SAME EXPORT DUMP FILE?

    before asking my question i'd like to mention that i'm a french spoke...
    so my english is a little bit bad. sorry for that.
    my problem is : IMPORT
    how to import data a SECOND TIME from an export dump file within oracle?
    My Export dump file was made successfully (Full Export) and then i
    tried to import datas for the first time.
    I got this following message in my logfile: I ADDED SOME COMMENTS
    Warning: the objects were exported by L1, not by you
    . importing SYSTEM's objects into SYSTEM
    REM ************** CREATING TABLESPACES *****
    REM *********************************************
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLESPACE "USER_DATA" DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' SI"
    "ZE 3145728 DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAX"
    "EXTENTS 121 PCTINCREASE 50) ONLINE PERMANENT"
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLESPACE "ROLLBACK_DATA" DATAFILE 'E:\ORANT\DATABASE\RBS1ORCL.ORA"
    "' SIZE 10485760 DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS "
    "1 MAXEXTENTS 121 PCTINCREASE 50) ONLINE PERMANENT"
    etc........
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE TABLESPACE "L1" DATAFILE 'E:\ORADATA\L1.DBF' SIZE 1048576000 "
    "DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 121 PCTIN"
    "CREASE 50) ONLINE PERMANENT"
    IMP-00003: ORACLE error 1119 encountered
    ORA-01119: error in creating database file 'E:\ORADATA\L1.DBF'
    ORA-09200: sfccf: error creating file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified
    --->etc..........
    the drive E: with the folder E:\ORADATA didn't exist, but after
    all that i created it.
    see below, before my IMPORT statement
    REM ********************* CREATING USER *********
    REM ********************************************
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE USER "L1" IDENTIFIED BY VALUES 'A6E0DAA6865E7627' DEFAULT TABLESPACE"
    " "L1" TEMPORARY TABLESPACE "TEMPORARY_DATA""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'L1' does not exist
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE USER "MLCO" IDENTIFIED BY VALUES '56AC6447B7D50467' DEFAULT TABLESPA"
    "CE "MLCO" TEMPORARY TABLESPACE "TEMPORARY_DATA""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'MLCO' does not exist
    ETC.......
    REM ********************* GRANTING ROLES ***********
    REM ************************************************
    IMP-00017: following statement failed with ORACLE error 1917:
    "GRANT ALTER ANY TABLE to "L1" "
    IMP-00003: ORACLE error 1917 encountered
    ORA-01917: user or role 'L1' does not exist
    ETC.........
    IMP-00017: following statement failed with ORACLE error 1918:
    "ALTER USER "L1" DEFAULT ROLE ALL"
    IMP-00003: ORACLE error 1918 encountered
    ORA-01918: user 'L1' does not exist
    -- that is normal, since the creation of the
    tablespace failed !!
    REM******************************
    IMP-00015: following statement failed because the object already exists:
    "CREATE ROLLBACK SEGMENT RB_TEMP STORAGE (INITIAL 10240 NEXT 10240 MINEXTENT"
    "S 2 MAXEXTENTS 121) TABLESPACE "SYSTEM""
    IMP-00015: following statement failed because
    . importing SCOTT's objects into SCOTT
    IMP-00015: following statement failed because the object already exists:
    "CREATE SEQUENCE "EVT_PROFILE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999"
    "999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE"
    ETC............
    importing L1's objects into L1
    IMP-00017: following statement failed with ORACLE error 1435:
    "ALTER SCHEMA = "L1""
    IMP-00003: ORACLE error 1435 encountered
    ORA-01435: user does not exist
    REM *************** IMPORTING TABLES *******************
    REM ****************************************************
    . importing SYSTEM's objects into SYSTEM
    . . importing table "AN1999_BDAT" 243 rows imported
    . . importing table "BOPD" 112 rows imported
    . . importing table "BOINFO_AP" 49
    ETC................
    . . importing table "BO_WHF" 2 rows imported
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLE "DEF$_CALL" ("DEFERRED_TRAN_DB" VARCHAR2(128),
    IMP-00015: following statement failed because the object already exists:
    "CREATE SYNONYM "DBA_ROLES" FOR "SYS"."DBA_ROLES""
    IMP-00015: following statement failed because the object already exists:
    "CREATE SYNONYM "DBA_ERRORS" FOR "SYS"."DBA_ERRORS""
    IMP-00008: unrecognized statement in the export file:
    . importing L1's objects into L1
    IMP-00017: following statement failed with ORACLE error 1435:
    "ALTER SCHEMA = "L1""
    IMP-00008: unrecognized statement in the export file:
    J
    Import terminated successfully with warnings.
    -------------------------------------b]
    So after analysing this log file, i created
    the appropriate drives and folders... as the
    import statement doesn't see them.
    E:\ORADATA G:\ORDATA etc...
    And i started to [b]IMPORT ONE MORE TIME. with:
    $ IMP73 sys/pssw Full=Y FILE=c:\temp\FOLD_1\data_1.dmp BUFFER=64000
    COMMIT=Y INDEXFILE=c:\temp\FOLD_1\BOO_idx.sql
    LOG=c:\temp\FOLD_1\BOO_log.LOG DESTROY=Y IGNORE=Y;
    after that i could not see the users nor the
    tables created.
    and the following message appeared in the log file:
    Warning: the objects were exported by L1, not by you
    . . skipping table "AN1999_BDAT"
    . . skipping table "ANPK"
    . . skipping table "BOAP"
    . . skipping table "BOO_D"
    ETC.....skipping all the tables
    . . skipping table "THIN_PER0"
    . . skipping table "UPDATE_TEMP"
    Import terminated successfully without warnings.
    and only 2 new tablespaces (originally 3) were
    created without any data in ( i check that in
    the Oracle Storage manager : the tablespaces exit
    with 0.002 used space; originally 60 M for each !!)
    so,
    How to import data (with full import option) succefully
    MORE THAN ONE TIME from an exported dump file ?
    Even if we have to overwrite tablespaces , tables and users.
    thank you very much

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the appropriate Database forum.
    The main URL is:
    http://forums.oracle.com/forums/index.jsp?cat=18

  • Can I modify a question slide to include more than 5 qs in same slide

    Hey everyone.
    I'd like to know If I can modify a question slide to include more than one question in the same slide.
    I'd like to include a slide with audio and some video in the left page and on the right page I'd like to include a q slide that can have more than one question to pertain to the input in the left page. But I wouldnt want to dupicate the left page.I'd like to include one page with input and the other page (right) with questions ( fill in the blank, multiple choice etc) just one slide of course.
    I don't want to fill up the project with a bunch of question slides. The purpose of the activity is for the participant to listen to the input only once and start getting quizzed ( extracting detailed info, forecasting etc etc)
    Thanks

    Please take a look at the screenshots,
    you can see how I have selected to execute the following advanced action on the submi tbutton howver there are a number of things going wrong and I doubt it's cause of the syntax as I've done ertythig as instructed!
    I'm executing the actions once the Submit button is clicked.
    I've placed the actions in the same "file" TF1 -TF5.
    After TF5 I've placed the show to shoe the results ...
    QUESTION:
    This action was created seperateley cause it's  a standard action and autmatically sent me elsewhere, not the same file... ???
    Is that right?
    I'm not getting a slide to show the feedback.
    Why?
    Timeline in question...???

  • More than 1 iphone on same ATT account?

    This is probably a basic question that has been answered many times...but I can't find it on the search so my apologies for any redundancy.
    My wife already has an iphone on our ATT family plan and is paying an extra $50 a month for the 3g Data package. I am now eligible for an iphone upgrade and I'm told by AT&T that I will need to pay an ADDITIONAL $30 a month for my data package.
    However, a coworker is in the same situation but bought his iphone directly from an apple store where they simply "attached" his new iphone to the existing account so he is NOT paying any additional monthly fee.
    So which is it? Must each iphone have it's own data package fee or can more than one access the 3g network via the same account?

    Thanks everyone......based on your input, half of the mystery is solved. Turns out the upstanding rep at AT&T signed my wife up for the $45/month Enterprise package which she neither requested nor needed.......she just didn't realize there was a $30 option. Lesson learned: it pays to do your homework BEFORE you buy. The additional $5 was for the 200 text/month package. So I'll be changing her account to the regular $30/month data pack since that's all she needs.
    The other portion of the mystery is still unsolved. My friend is certain that he and his wife are sharing the same data package over 2 iphones.....but I think there must be something missing there. Anyway, thanks all you've been very patient and a huge help!

  • Is it problematic to use Microphone.getEnhancedMicrophone() more than once on the same device?

    Here's an interesting little experiment:
         Alert.show((Microphone.getEnhancedMicrophone() == Microphone.getEnhancedMicrophone()).toString());
         Alert.show((Microphone.getMicrophone() == Microphone.getMicrophone()).toString());
    They both show "false", even though the calls to getMicrophone() and getEnhancedMicrophone() always point to the same device.
    I'm making an R&D app right now, and this is a potential problem for me.  I've designed the app around it being able to refresh the list of available mics, and for the user to be able to go back and forth between different mics and be able to hear themselves, among other things.
    If they turn on loop back for a mic, then re-select the same mic, it'll create a different object for that same exact device, and after turning off loop back for the previous instance (and removing all references to that instance), it'll turn on loop back for the new instance.  The problem?  It's hard to tell for sure, but there appears to possibly be some sort of issue with the Flash Player taking a minute to garbage collect the old instance, and during that time, the Flash Player trying to read audio out of that device and loop it back twice, as opposed to once.
    It's hard to tell whether this is really happening, or whether the distortion I'm hearing is purely two-second transition from one instance to the other, but there are also questions in my mind about the viability of just trying to track each individual device in a Dictionary; if multiple devices have the same name and keep getting pulled out of one port and plugged into another, there seem to be problems in being able to keep track of indivdual devices very well in that case.
    So is this a really big issue for an app that's designed to let people keep switching mics back and forth, as well as letting them refresh the list of available mics over and over?  Or as long as setLoopBack(false); and setSilenceLevel(100); are called on every instance before its references are removed, will there not be any sort of disturbance in future instances' audio (or any other issue, aside from late GC)?  Thanks!

    You're creating a reference. The constructor that runs factorizes some other classes into your object such as flash.media.SoundTransform. Due to instantiating a "new" SoundTransform, it differs from the other mic references SoundTransform. Thus the object is not identical. The debug panel shows you easier:
    If you really just want to see if it's attached to the same device, simply compare the index value.
    if (mic1.index == mic2.index) {
         // same audio recording device

  • Can a single account be logged into more than once at the same time

    -
    Firstly, please excuse me if this has already been asked - I tried searching for various terms but couldn't see anything.
    At present we run a single account (non-admin) on our iMac G5 which holds all out families photos/music/movies etc. I'm wanting to add a MacBook to our iMac. They would communicate either wirelessly, or via an ethernet hub. We would like to fire up the laptop and log into that same account, so all that information is available (read and write) from both computers, and at the same time.
    Is this possible? If so, how is it achieved. Is there some network settings that have to be made on the MacBook?
    I'm aware that there will be limitations - i.e. two people won't be able to modify the same file at the same time. Also that the iMac will have to be powered up for the account to be accessed etc.
    Finally, due to space considerations I'm wanting to move the home folder for our existing account onto an external FW drive (using the techniques I've found in other posts on this forum). Will this affect any solution to my original question?
    Thanks for your time.

    When you turn on file sharing, others can see your computer in the Finder > Go > Network window, where they can click on it to see what shares are available. These can be the public folders (which don't need a password to connect), or user folders (which do). By connecting to one of the shares, they then have access to the files within them. If you don't want to use an external disk, you can use SharePoints to share folders within your account, such as Music or Pictures. Just be aware that sharing files within a user account can run into permissions issues, for example trying to edit a document owned by someone else, which is one of the reasons to use an external disk. Tiger and Leopard also support Access Control Lists, but you need to know what you are doing.

  • How to combine more than 2  templates in same window horizontally

    Hello friends........
    can u tell me how to combine templates and windows in smart forms.
    Any example program to illustrate  it.
    I  am having a requirement that to  make a template by combining 3 windows which are having 3 templates by using the
    concept combining  templates and windows.
    i know folder concept but it will combine the nodes which are appended to  it ,but i don't what that one.....
    i want in a template with  2 windows with 2 templates coming  in  a same line .
    friends can u please help me out .......

    thank  u  very much for replying
    i have requirement in smart forms like this my client wants  a smart form in which i have to use the concept of
    combining 2 windows  inside a template
    actually some part of my template looks like this
    |-- | |--
    |
             vv
    this box should not have any rows in it, it should  be as it is like this plain.
    when i have searched the net i found that this can be done by the concept of combining templates and windows we can do it.
    i went to sap portal and  read sap press eBook and seen many sites but i could not
    find the way to do this .
    can u please guide me what  can i do.....

  • Can you run the Import Wizard more than once at the same time?

    We're going to run the Import Wizard to import content from one BO environment to another.  Can we, at the same time, run the Import Wizard to import different content between those two environments (using the same source and destination both times)?  Obviously we'd have to run the wizard on different workstations.
    Would this cause any issues?  If so, what kind of issues would you expect?
    Thanks,
    Laura

    Yes, this is possible.  The source and destination CMSs treat the requests from the Import Wizard like any other -- increasing the number of active Import Wizard sessions just increases the load on these CMSs.  Before running multiple Import Wizard sessions, be sure there is ample processing power (CPU / memory) to handle the increased load.    and of course, avoid 'touching' the same content in the two sessions in order to avoid unpredictable results.
    -Mike

  • How can we delete more than oner pernr at same time

    Dear all
    I have an support issues that I need to delete few pernr at same time  But I know only to delete one pernr at one time.
    Could you please guide me how can we achieve this issues.
    Regards
    Chandra

    Hello,
    Yes RPUDELPN in se38
    just give the pernr ranges in from and to then run the report removing test mode.
    good luck

  • How to handle the more than once from the same jsp files

    Hi,
    i have a one jsp file with three buttons.each one having for different functionalities. like one for cancel, second for edit the values and third for save the values in databse. so i want to handle all these 3 buttons. how can test that which button is coming for action..
    Is there any validation necessary for buttons....
    give me the suggestion to do this.......
    help meeeeeeee
    thanks
    123

    Hint: Its something you need to handle using javascript by setting the hidden variables during submit.
    I would expect you to think on this and reply the simple solution.

  • How can I burn more than 7 of the same playlists?

    Burning just 7 playlists seems arbitrary. No one in their right mind would use this method to pirate music. I am making Christmas gifts for friends. Is there a way around this limitation?

    Delete the playlist and remake it...
    One presumes these are your own recordings in this playlist. The facility is not intended for you to make duplicates of copyrighted material.
    tt2

Maybe you are looking for

  • MacBookPro cannot find my HP wireless printer.

    I have a HP8600 Plus wireless printer. I recently bought a new airport extreme, which is working ok. When I try to reconfigure my printer, my Mac cannot find it. Report says I should disable MAC address. How do I do this?

  • My power cord isn't charging my powerbook g4

    Okay, so my problems started a couple of weeks ago. I have a Powerbook g4, 15 inch. It's not brand new, I bought it off of ebay, but it worked fine for the first week that I had it, no problems. Then one day when I was using it I heard a "pop", and I

  • HDMI - Port/cord advice needed

    Ok - I have a new Dynex HD TV. I want to connect my Macbook Pro (Early 2011, Mountain Lion) to it, but am questioning myself on the purchase to make... After doing some research I see that this requires connecting from the Thunderbolt using HDMI - My

  • Switch on open item mangement.-ERROR

    We are in version Ecc 6.0 ,We have a Balancesheet Gl account.We have made the balance equal to zero.And now want to switch on open item mangement. But it displays below message: Account balance =0 but open items exist in the account The data contains

  • Sending Custom Java Objects over XML!!

    Hello all ! Can anybody please tell me how can I send custom Java Objects through XML? For example we can set attributes for a node using the setAttribute method, it accepts only strings, also the setTextContent method requires text and sets the node