A nest within a nest and the multiple-query blues...

Hi all:
Complex problem here, so bear with me please. I'm still
building this corporate database for purposes of inventory
tracking, and my latest problem follows. Here's the setup.
I have a MySQL database with 3 tables (there are actually
more, but those are the only ones that are relevent):
units_main' stores information about machinery such as its
model number and invoice number.
di_options_main' keeps track of what accessories are added
to a given unit through the use of a foreign key, in this case an
auto-generated integer called 'unit_id' which is primary in
units_main and secondary in this table.
valid_options stores the values such as manufacturer and
type for the accessories mentioned earlier, linked through the
common key of 'model_number'.
Now I have a searching engine which brings up a standard
results page (a regular table with a repeating recordset) of all
units matching the given search criteria. I want to be able to look
at this search results page and see not only the data retrieved
from the units_main table, but also some of the related data in
di_options_main. For instance, suppose I have an L3400 tractor with
an LA703 loader. The tractor is listed in units_main, while the
loader is found in di_options_main. I could create one recordset
for the main tractor data and one for the loader (option) data, but
this screws up the repeating recordset. Further, in this case, the
data needs to be retrieved from di_options_main based on the 'type'
field of valid_options - I only want to see accessories of the type
'LOADER'. This puts the query about three generations back. I might
still be able to code this if it weren't for the repeated region,
which can't be nested and throws a wrench in the works. I know this
is a difficult question, but I can post code for one or all the
files involved if it sounds like something someone can help me
with. Thanks in advance.

What you need to do is join all the tables into a query in
the database,
then use this as a source for the recordset on the page. You
need to use
nestes repeat regions to display the detail information.
Depending upon the
server language you are using there are extensions that can
do this for you.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"Ken Ha Quad" <[email protected]> wrote in
message
news:[email protected]...
> Hi all:
>
> Complex problem here, so bear with me please. I'm still
building this
> corporate database for purposes of inventory tracking,
and my latest
> problem
> follows. Here's the setup.
>
> I have a MySQL database with 3 tables (there are
actually more, but those
> are
> the only ones that are relevent):
>
> '
units_main' stores information about machinery such as its
model
> number and invoice number.
>
> '
di_options_main' keeps track of what accessories are added
to a
> given
> unit through the use of a foreign key, in this case an
auto-generated
> integer
> called 'unit_id' which is primary in units_main and
secondary in this
> table.
>
> '
valid_options stores the values such as manufacturer and
type for
> the
> accessories mentioned earlier, linked through the common
key of
> 'model_number'.
>
> Now I have a searching engine which brings up a standard
results page (a
> regular table with a repeating recordset) of all units
matching the given
> search criteria. I want to be able to look at this
search results page
> and see
> not only the data retrieved from the units_main table,
but also some of
> the
> related data in di_options_main. For instance, suppose I
have an L3400
> tractor
> with an LA703 loader. The tractor is listed in
units_main, while the
> loader is
> found in di_options_main. I could create one recordset
for the main
> tractor
> data and one for the loader (option) data, but this
screws up the
> repeating
> recordset. Further, in this case, the data needs to be
retrieved from
> di_options_main based on the 'type' field of
valid_options - I only want
> to see
> accessories of the type 'LOADER'. This puts the query
about three
> generations
> back. I might still be able to code this if it weren't
for the repeated
> region, which can't be nested and throws a wrench in the
works. I know
> this is
> a difficult question, but I can post code for one or all
the files
> involved if
> it sounds like something someone can help me with.
Thanks in advance.
>

Similar Messages

  • How to mirror between the production server and the multiple local servers.

    I am currently looking for the best way to correspond between our production server and the multiple local servers. Because the production server is the only server that holds the latest updating applications, and our local servers are located for each developer’s local machines where the all modifications and creations are done. So when the developer locally makes changes for assets or files, he creates a patch archive first, then accesses to the production side Administration console screen and imports them from Application Management screen.
    We tried to find a way to see the imported date before (so we know which one has been imported as new.), but there is no show in the Administration console Application Management screen. There is Creation date but it’s set as we initially imported the full archive files, but not patch files. Since between applications have some types of the dependencies (like fragments or image files), what is the best way to keep mirroring between the production server and local servers? Or we should simply not use patch file for updating server?
    Thanks,

    Check out this utility : http://blogs.adobe.com/livecycle/2013/03/adobe-livecycle-configuration-migration-utility.h tml
    Thanks,
    Wasil

  • HT201441 I purchased 2 large bags of cell phones at a surplus/lost and found auction. The owner of this phone lost it, and didn't pick it up at the lost and found within 90 days and the phone was put up at auction. By law I am the new legal owner of the p

    I purchased 2 large bags of cell phones at a surplus/lost and found auction. The owner of this phone lost it, and didn't pick it up at the lost and found within 90 days and the phone was put up at auction. By law I am the new legal owner of the phone. The person who lost it locked their phone but didn't bother going to look for it. Not my problem. I went to the Apple store with my auction receipt and they said they still can't erase the old owner's account from the phone, and I need their receipt and their permission. There has to be some way around that. I legally purchased it after they lost it and neglected to pick it up within the time frame the law gave them to pick it up. Basically the Apple Store employee told me I was **** out of luck and the phone is basically garbage.

    You were correctly informed. You are the new, legal owner of a beautiful paper weight. There is no way around it. This is a security protection to prevent people who steal them from getting value from the stolen item.

  • My iPad 2 fell the screen is shattered and the screen went blue. what is my best course of action? Repair it or just get a new one?

    My iPad 2 fell the screen is shattered and the screen went blue. what is my best course of action? Repair it or just get a new one?

    Apple's Limited Warranty http://www.apple.com/legal/warranty/ for iPad excludes coverage for damage resulting from accident, disassembly, unauthorized service and unauthorized modifications.
    Out-of-Warranty Service
         If you own an iPad that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will replace your iPad with an iPad that is new or equivalent to new in both performance and reliability for the Out-of-Warranty Service fee listed below.    
    iPad model
    Out-of-Warranty Service Fee
    iPad mini
    $219
    iPad 3rd, 4th generation
    $299
    iPad 2, iPad
    $249
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in US dollars and are subject to local tax.
    Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPad that has failed due to contact with liquid may be eligible for out-of-warranty service. See http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
    You may can get the iPad repaired at 3rd party repair sources for less $, however, any remaining Apple warranty will be voided.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/
     Cheers, Tom

  • How do i fix my wifi if it connects and the bars are blue but no check sign appears next to the wifi name and does not connect to the internet???

    How do i fix my wifi if it connects and the bars are blue but no check sign appears next to the wifi name and does not connect to the internet???

    Did you already try to reset the iPod by holding the sleep and home button for about 10sec, until the Apple logo comes back again? You will not lose data.
    If this does not work, try to reset the network settings in Settings/General/Reset. After that you'll have to put in the passwords for all known networks again.
    More troubleshooting can be found here:
    iOS: Troubleshooting Wi-Fi networks and connections

  • I dropped my iphone and the screen has blue lines on it. Siri still works but the screen doesn't but the screen isn't cracked or shattered. What should I do?

    I dropped my iphone and the screen has blue lines on it. Siri still works but the screen doesn't but the screen isn't cracked or shattered. What should I do?

    Bring your phone and $199 to the Apple store for an out of warranty exchange of your phone.  You clearly broke it when you dropped it.

  • When I'm browsing on Safari, it all of a sudden cuts off and the screen turns blue. It turns blue for about 5 seconds and then returns to the desktop screen. Any idea what's going on?

    When I'm browsing on Safari, it all of a sudden cuts off and the screen turns blue. It turns blue for about 5 seconds and then returns to the desktop screen. Any idea what's going on?

    Anna...
    Could be the graphics card.
    Run the Apple Hardware Test

  • List all Published Crystal Reports and the BW Query they are created upon

    Hello All
    I am wanting to create a list of all Crystal Reports files that have been published to BW and report the the Crystal Reports Name and the BW Query (datasource) name.
    At the moment I am opening up each report in crystal and via database expert determining which BW query is used. I have about 120 reports I need to do this for and I would really appreciate if there is an easy way to extract this data.
    Even if I am just provided with table names where this linkage is stored would be great as I can then create the report myself.
    The Format of the report is really simple
    Crystal Report (Doc. Name)................Crystal Report Data Source Name (BW query)
    I hope someone can help.
    Thanks
    Phillip

    hi,
    the information is available in transaction /crystal/rptadmin.
    another option is to use the query tool to ask the system database.
    Ingo

  • I was adding music and getting ready to sync so I plugged in my iTouch and the screen went blue and the apple logo came up and under that looks like a download line but nothing is downloading, how do I fix this??

    I was adding music and getting ready to sync so I plugged in my iTouch and the screen went blue and the apple logo came up with looks like a download line but nothing  is downloading, How do I fix this??

    Try iPod touch troubleshooting.  http://www.apple.com/support/ipodtouch/assistant/ipodtouch/

  • My iPhone 4s fell down and the LCD turned blue and black stripes line, is it still covered by the warranty?

    My iPhone 4s fell down and the LCD turned black and blue stripes and the warranty is still active.
    My question is, is it still covered by the Apple? How to fix it without changing the LCD?

    Accidental or wilful damage is not covered by Apple's standard or extended warranty. AppleCare + does cover this kind of damage for a small fee.
    When taking the phone to Apple for repair Apple will not replace the faulty part. They replace the whole phone. However some stores may offer screen replacements.

  • HT4623 I have an appt at the leawood, ks office tomorrow at 1:30 I need to cancel due to car problems.  I have rescheduled but can't find where to cancel the thurs appt.  i dropped the ipad and the screen is blue

    I have an appt at the Leawood, KS office tomorrow (thurs at 1:30 pm) I need to cancel due to car trouble.  I rescheduled for friday but can't find how to cancel the appt tomorrow.
    I dropped my ipad and the screen is blue

    These are user forums. You aren't speaking to Apple here. We don't make nor reschedule nor cancel appointments. Call where you made the appointment.

  • I just installed lihtroom CC, and in develop, the picture is blue. when I used the before after, the picture before is normal, and the after still blue.

    I just installed lihtroom CC, and in develop module, the picture is blue. when I used the before after, the picture before is normal, and the after appears still blue.
    I don't know what to do?

    Refer below link :
    https://forums.adobe.com/thread/1823307
    Lightroom 6 is displaying a blue screen with a white X through it in the Develop module for all my photos

  • My ipod 2 dropped and the screen is blue no icon

    My ipod 2 dropped and now the screen is blue and it not showing no icon but I can still hear the  notification
    <Subject Edited by Host>

    It's likely that it was damaged when you dropped it. Make an appointment at the Genius Bat at your local Apple Store.

  • TS2771 I dropped my iPod touch in the ground and the screen turned blue and now it won't turn on what do I do

    I was walking and I dropped my iPod and I picked it up and it was blue so I tried turning it back on and it wouldn't what do I do any help

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar              

  • I am having trouble with my i pad it freezes it turns off by itself and the screen turns blue?

    I am having trouble with my i pad it freezes and it turns off by itselfI and screen turns blue?

    Start by rebooting the iPad by holding both the power and home buttons until the apple logo appears and it restart, ignoring the red slider if that appears.  See if that helps.

Maybe you are looking for

  • How do I create an 'upload facility" for my website using Muse.

    How do I create an 'upload facility" for my website using Muse.  We are a print company and is how we receive most of our work. Iain

  • FPE2 doc changes are not saved when C4EYE is reset via workflow

    Hello All,     I'm utilizing event # 5504 in FQEvents (in FICA) to start a workflow. When a user sets a payment method in FPE2, I set the C4EYE and then explicitly create a custom event which starts my approval workflow. On saving the document change

  • ComponentWorks and Visual C++ 6.0

    How do I load the ComponentWorks 2.0.1 Controls in Visual C++ 6.0 ? Caroline Catel | mailto:[email protected] SINFOR Rhone-Alpes | Phone: (+33|0) 4 72 13 56 00 10 Place Charles Beraudier | Fax: (+33|0) 4 72 13 56 01 F-69428 LYON Cedex 03 | Web: http:

  • PGI posting With out SO

    Dear all In some circumstances our client is done the customer sales thro JV documents. In this trading process the materail which are procured are still in stock. Now they want COGS account debit, Inventory account credit G/L for this items. Please

  • Install Problem with Adobe Presenter 9 Trial on Windows 7 Professional 32 bit?

    I am trying to install Adobe Presenter 9 Trial on Windows 7 Professional 32 bit.  It hangs up while installing Microsoft Visual C++ 2005 Redistributable Package (x86).  How can I get around this?