Update records from a table in correct sequence that look from 2 tables and loop

Hi!
My question title is kinda unclear but here how it goes.
I created  2 tables for my BOM (Bill of Materials). I have BOM_Header and BOM_Detail. 
Below are my sample data. 
BOM_Header
Product_ID Int
Product_Name Varchar(50)
Cost Numeric(18,2)
Yield Varchar(50)
Select * from BOM_Header
1 Choco Cake 850.00 10
2 Mixed Flour 700.00 30
3 Choco Syrup 160.00 10
4 Egg Formula 2150.00 20
BOM_Detail
Product_ID int
ItemNo Int
ItemName varchar(50)
Quantity int
Unit varchar(50)
ProdCost numeric(18,2)
Select * from BOM_Detail
1 2 Mixed Four 10 Grams 15.00
1 3 Choco Syrup 20 ML 25.00
1 4 Egg Formula 20 Grams 10.00
2 101 Flour 5 packs 80.00
2 4 Egg Formula 5 Grams 60.00
3 201 Cocoa Power 2 kg 20.00
3 202 Sugar 2 kg 60.00
4 301 Whole Egg 10 pcs 85.00
4 302 EP12 Formula 25 ml 52.00
My computation is below.
BOM_Header = a
BOM_Detail = b
a.Cost = b.Quantity  x  b.Product Cost  where a.Product_ID = b.Product_ID
My problem is how can I automatically compute their Food Cost in  sequence from raw materials to finished products.
Based on the data, I need to compute first the Egg Formula because it is used as component of  Mixed Flour then compute the Mixed Flour and other component to get the cost of Choco Cake. 
How can I do this automatically in query to look first in detail if there are ingredients within a sub - ingredients then compute before computing the final cost of the Product. 
This is because cost of ingredients are changing most of the time and need to recalculate to get the most updated cost.
Any suggestion is very much appreciated.
Thank you very much,
Regem

>> My question title is kinda unclear but here how it goes. <<
Then your answers will be unclear, too :(  
You do not know data modeling, so your data types are wrong. What math are you doing with the product_id? None. This is why identifiers are char(n) and not numeric. They should be industry standards if possible. I like the GTIN.
You do not even know that rows are not records. 
Why is the product name fifty characters? Certainly not research! But if you are an ACCESS programmer using a default vale, then you might do this. 
Besides violating ISO-11179 rules, “<vague>_field” makes no sense! It is a quantity that you put in a  string. 
CREATE TABLE BOM_Header
(gtin CHAR(15) NOT NULL PRIMARY KEY,
 product_name   VARCHAR(25) NOT NULL
 unit_cost  DECIMAL(18,2) NOT NULL
  CHECK ( unit_cost >= 0.0.),
 yield_qty INTEGER NOT NULL
   CHECK (yield_qty >= 0));
>> Any suggestion is very much appreciated. <<
Get a copy of my book on TREES in SQL and read the chapter on BOM problems. I am not goingto try to post a whole chaper and diagrams to answer this. You are doing the wrong things and have done them poorly. 
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL

Similar Messages

  • Iphoto - when exporting photos with their titles,iPhoto changes the manual sequence that I have given and imposes an alphabetical sequence

    Mac mini
    Processor  2.5 GHz Intel Core i5
    Memory  8 GB 1600 MHz DDR3
    Graphics  Intel HD Graphics 4000 768 MB
    Software  OS X 10.8.5 (12F45)
    When exporting a group photos with their individual titles, iPhoto changes the manual sequence that I have given and imposes its own sequence (which seems to be alphabetical).  The export dialogue box allows me to use my titles or to impose a numerical sequence.
    How can I keep my titles and the sequencing that I had carefully worked out?

    What you are missing is that files have no order - you view them using a program and that program creates the order
    When viewing in an iPhoto album you can sort manually and iPhoto will display the photos as you sorted them - but when you move to a different program (the finder for example) you have a totally different set of sorts available - for example in the finder the same set of files can be viewed in alpha order, in size order, in date modified order, etc - none of those are inherent in the file but are sorts set under the view menu 
    So to meet your requirements you must export with file attributes that allow the finder view options to present your desired view - which is what volunteers here have tried to help with - even though it really does not involve IPhoto in any way
    LN

  • CSS Styled DIVs that look like tables?

    I've just redesigned my entire home web site using CSS div
    positioning and I am now about 80% table free. However I have
    several pages that I like lined up the way they are in multi
    column, multi row tables like this:
    http://www.cmhager.com/test/tabletest.shtml
    Anyone have some good tutorials on how to accomplish this?
    Thanks...

    Al Sparber- PVII wrote:
    > "Thierry | www.TJKDesign.com"
    <[email protected]> wrote in
    > message news:[email protected]...
    >> Let me remind you that the original poster asked how
    to design his
    >> web site
    >> to be *table free*.
    >> AFAIK, I answered his question.
    >> So what did *you* bring to this thread exactly
    besides your smart *ss
    >> remark? (excuse my French)
    >
    > All I have to say to that, is Viva Italia :-)
    Do you think because I'm French I care? LOL
    I thought after all these years you'd know be better... FYI,
    I didn't watch
    yesterday and I was not watching 8 years ago.
    > Look, Thierry, a poster could ask how to make an income
    statement
    > table-less and some folks will tell him how, while other
    folks will
    > advise him to keep it in a table. I think that perhaps
    both Gary and I
    > saw the fella's page and saw a matrix of images. If he
    wants to do
    > away with the images or the matrix and use a UL to
    display a single
    > column of links, then that's fine. I didn't read it that
    way.
    I'm sorry but nobody suggested the OP should "do away with
    the images or the
    matrix and use a UL to display a single column". The one
    "column" display
    was suggested as an advantage of the UL over the table in a
    small viewport.
    > By the way, replacing the "a" in "***" with an asterisk,
    does not
    > sanitize or add polish to your propensity for
    name-calling. "Mr.
    > Semantic" is a much nicer and could have been taken as
    an honorific -
    > in a good-natured way.
    You can insult people without calling them names and I'm sure
    you know that
    1. The OP asks a question
    2. I answer his question.
    3. You say that it would be not logical.
    4. I list my arguments for using an UL rather than a table
    and politely ask
    why it would not be logical to use CSS for layout.
    5. Rather than answering my questions (or simply chose to not
    reply at all)
    you decide to come up with:
    "Mr. Semantics, I beg your forgiveness. Now I must go make up
    my laundry
    list. I'm sure the original poster will have a grand old time
    making a list
    just for you."
    I'm sorry but in my book I find this reply insulting. It's
    like when you're
    talking to someone and he turns your back on you before
    you're finished
    answering his question. That's the kind of behavior that
    makes me call
    people smart *ss. I could have used "Mr" though... ;)
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    CSS Tab Menu:
    http://www.TJKDesign.com/go/?3

  • I write a new email from my personal gmail account and it automatically sends from my family gmail account.  I  make sure that it lists my personal email on the from line. it still shows up that its from my family email. Help!

    I write a new email message from my personal gmail account and it automatically sends from my family gmail account.  I  make sure that it lists my personal email on the from line. It still shows up that its from my family email. Help!

    Hello, gypsyro. 
    Thank you for visiting Apple Support Communities.
    I would check to make sure the default account in Settings > Mail, Contacts, Calendars is set to your personal Gmail account.  Test send another message after making the change.
    Mail Settings
    Cheers,
    Jason H.

  • ITunes suffles songs imported from a CD AND will not record my playlist in the correct sequence on a CD.  How do I correct the problem?

    iTunes shuffles songs imported from a CD and
    shuffles songs to be burned to CD from my playlists, i.e. incorrect sequence.

    Reinsert the CD & reimport them.

  • Did IOS 7 update.  Can't find my rented movies that downloaded from iTunes.  I downloaded to watch later, they don't come up as rented

    Did IOS 7 update.  Can't access downloaded movies I rented from iTunes.  Matter of fact they don't even show they are there &amp; Rented.  How do I get to watch movies I paid to rent?

    It seems to be a common problem many Apple TV users are experiencing.  I was able to restore to factory settings, update software and reconfigure the Apple TV settings,and then could view one program.  However, the solve is only temporary and it is a lengthy process. I'm hoping Apple support can provide a permanent solve soon.

  • Spry data table with photo thumbs, that open larger images and more thumbs when clicked

    Hi,  I'm trying to make a page that has a spry table that has car listings, make model etc... i want that info in the table area, with a thumbnail. when you click on the line in the table for a particular car, i want a window to open with thumbnails and larger pic. I have not been able to find how to get the window to open from the table info...it needs to be easily changeable, for instance as cars are sold, to remove old ones and add new ones with pics...I cant find any tutorials that deal with something like that...if you could point me in the right direction i'd appreciate it

    hi
    well, first, I can only get the text information to show up in the table, the pics do not. no link, no pic nothing, just blank. I did the add spry data, chose my xml file, with schema in the file. chose the stacked container with spotlight, which is for pics according to adobe, loads ok. my xml file is this
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:od="urn:schemas-microsoft-com:officedata">
    <xsd:schema>
    <xsd:element name="dataroot">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="Cars" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="generated" type="xsd:dateTime"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Cars">
    <xsd:annotation>
    <xsd:appinfo>
    <od:index index-name="PrimaryKey" index-key="ID " primary="yes" unique="yes" clustered="no" order="asc"/>
    <od:tableProperty name="Orientation" type="2" value="0"/>
    <od:tableProperty name="OrderByOn" type="1" value="0"/>
    <od:tableProperty name="NameMap" type="11" value="CswOVQAAAACc6U1USJAMRI0VA+hJZ3tPAAAAALGkyOr3xONAAwEAACAIRQVDAGEA
    cgBzAAAAAAAAAEj6ypGxIwNDnryyCm/b7+IHAAAAnOlNVEiQDESNFQPoSWd7T0kA
    RAAAAAAAAAASmFZWi+DCS7sJb9DZmGcBBwAAAJzpTVRIkAxEjRUD6Elne09NAGEA
    awBlAAAAAAAAAHusgDcg7zdMsa3wpnM6LF0HAAAAnOlNVEiQDESNFQPoSWd7T00A
    bwBkAGUAbAAAAAAAAACPdks6OQxFSpf/dAbd/xBPBwAAAJzpTVRIkAxEjRUD6Eln
    e09ZAHIAAAAAAAAAj6yQFEDYy0utEnEK2WD6qgcAAACc6U1USJAMRI0VA+hJZ3tP
    QwBvAGwAbwByAAAAAAAAAE4fCFmx/CtHtwkTeMlLCmEHAAAAnOlNVEiQDESNFQPo
    SWd7T1YAaQBuACAATgB1AG0AYgBlAHIAAAAAAAAAeTU5LE4tLE2logmOBFG+mgcA
    AACc6U1USJAMRI0VA+hJZ3tPUAByAGkAYwBlAAAAAAAAAOBprfb8f75FuDPsJjSJ
    4DEHAAAAnOlNVEiQDESNFQPoSWd7T0kAbQBhAGcAZQAAAAAAAADHHMzcxn4sTbPP
    g+piA6klBwAAAJzpTVRIkAxEjRUD6Elne09NAGkAbABlAGEAZwBlAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAA
    "/>
    <od:tableProperty name="DefaultView" type="2" value="2"/>
    <od:tableProperty name="GUID" type="9" value="nOlNVEiQDESNFQPoSWd7Tw==
    "/>
    <od:tableProperty name="DisplayViewsOnSharePointSite" type="2" value="1"/>
    <od:tableProperty name="TotalsRow" type="1" value="0"/>
    <od:tableProperty name="FilterOnLoad" type="1" value="0"/>
    <od:tableProperty name="OrderByOnLoad" type="1" value="1"/>
    <od:tableProperty name="HideNewField" type="1" value="0"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ID" minOccurs="1" od:jetType="autonumber" od:sqlSType="int" od:autoUnique="yes" od:nonNullable="yes" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="1"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="SPrKkbEjA0OevLIKb9vv4g==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Make" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="2"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="EphWVovgwku7CW/Q2ZhnAQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Model" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="3"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="e6yANyDvN0yxrfCmczosXQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Yr" minOccurs="0" od:jetType="longinteger" od:sqlSType="int" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="4"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="DecimalPlaces" type="2" value="255"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="j3ZLOjkMRUqX/3QG3f8QTw==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Color" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="5"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="j6yQFEDYy0utEnEK2WD6qg==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="VinNumber" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="6"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="Th8IWbH8K0e3CRN4yUsKYQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Price" minOccurs="0" od:jetType="currency" od:sqlSType="money" type="xsd:double">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="7"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Format" type="10" value="$#,##0.00;($#,##0.00)"/>
    <od:fieldProperty name="DecimalPlaces" type="2" value="255"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="eTU5LE4tLE2logmOBFG+mg==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Mileage" minOccurs="0" od:jetType="longinteger" od:sqlSType="int" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="8"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="DecimalPlaces" type="2" value="255"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    <od:fieldProperty name="GUID" type="9" value="xxzM3MZ+LE2zz4PqYgOpJQ==
    "/>
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="Pics" minOccurs="0" od:jetType="anyURI" od:sqlSType="nvarchar">
    <xsd:annotation>
    <xsd:appinfo>
    <od:fieldProperty name="ColumnWidth" type="3" value="-1"/>
    <od:fieldProperty name="ColumnOrder" type="3" value="10"/>
    <od:fieldProperty name="ColumnHidden" type="1" value="0"/>
    <od:fieldProperty name="Required" type="1" value="0"/>
    <od:fieldProperty name="AllowZeroLength" type="1" value="1"/>
    <od:fieldProperty name="DisplayControl" type="3" value="109"/>
    <od:fieldProperty name="IMEMode" type="2" value="0"/>
    <od:fieldProperty name="IMESentenceMode" type="2" value="3"/>
    <od:fieldProperty name="UnicodeCompression" type="1" value="1"/>
    <od:fieldProperty name="TextAlign" type="2" value="0"/>
    <od:fieldProperty name="AggregateType" type="4" value="-1"/>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <dataroot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated="2010-11-09T16:11:16">
    <Cars>
    <ID>8</ID>
    <Make>Toyota</Make>
    <Model>Corolla</Model>
    <Yr>1992</Yr>
    <Color>Blue</Color>
    <VinNumber>1645kjdjdj</VinNumber>
    <Price>19326.3</Price>
    <Mileage>15362</Mileage>
    <Pics xmlns:xlink="http://www.w3.org/1999/xlink"> <-
        <link xlink:type="simple"                                   <-
          xlink:show="embed"                                        <-
          xlink:actuate="onLoad"                                    <-
          xlink:title="Well! This is an image!"                    <-
          xlink:href="2521299015.jpg">                           <-----this was last attempt also did not work
        </link>
       </Pics>
    </Cars>
    <Cars>
    <ID>9</ID>
    <Make>Toyota</Make>
    <Model>Yaris</Model>
    <Yr>2009</Yr>
    <Color>Blue</Color>
    <VinNumber>lakjladlajkd</VinNumber>
    <Price>12536</Price>
    <Mileage>21365</Mileage>
    <Pics>/images/2521299015.jpg</Pics>               <----this is what I've seen the most as what your supposed to have, also does not work for me
    </Cars>
    <Cars>
    <ID>10</ID>
    <Make>Nissan</Make>
    <Model>Sentra</Model>
    <Yr>1985</Yr>
    <Color>Red</Color>
    <VinNumber>akjlkdjf54454</VinNumber>
    <Price>5326</Price>
    <Mileage>24558</Mileage>
    </Cars>
    </dataroot>
    </root>
    no matter how i have tried formatting the image, adding img src etc...nothing makes the pic show up...i need to get this part to work more than any other. what do i put in the xml file that will make a image show up in the dynamic spry table? I cant add a table outside of the dynamically created one, if i do, how will the pics sort correctly with the spry table?

  • HT1386 simple and easy way to sync my contacts from iPhone 3gs to Macbook Pro that both my partner and I use. Have tried with photos and and only 350 of 3,500 items have synced. Remember simple and easy, I'm still learning-slowly.

    Simple and EASY way to sync contacts from 3gs iPhone to MacBook Pro. Partner and I both use macBook. I have tried and get a message that only 350 of 3,500 item have syncd- all photos. I'm still learning and am very afraid of doing something that will wipe out all info,contacts and photos. Entering this site, the account shows my partners name, but accepts my other information.

    First of all, you should always save you photos on computer like any other digital camera.
    Backup on iCloud or iTunes only backup your Camera Roll. The other photos should be already on the computer.
    Note: Photos are not saved in iTunes, it's only a conduit between your iPhone and your photo managing software on computer.
    What computer do you have?

  • I have iPhone 4 which is jail break, now i want to buy some apps from iTunes Store, if i purchase that app from iTunes, is that works on my jail break iPhone 4 ?

    Can any one Help me plzz .....

    The rules of this forum forbid anyone from discussing jailbreaking.  No one can help you here.

  • Problem with update record, then link to file

    Environment:
    Dreamweaver 8, MySQL, PHP.
    I have a repeating record from my database. I added an Update
    Record server behavior for each search result for the result table.
    I added a button to the form and changed "submit" to "view".
    Pressing "view" is supposed to allow the user to view the detailed
    record information.
    The Update Record server behavior is supposed to do two
    things:
    1) add 1 to the 'numViews' filed of the record's database
    entry when the "view" button is pressed
    2) After updating the numViews field, the form is supposed to
    redirect the user to the detailed record
    I found that depending on how I create the record, I an do
    one of the above 2 behaviors, but not both. HELP!
    To add 1 to the numViews field, I created a form variable
    called incNumViews, which does the following:
    <?php echo $row_rsSearchResults['recipeNumViews']+1; ?>
    Very simple.
    The Update Record ends up changing the form action to the
    following:
    <?php echo $editFormAction; ?>
    Looking at the code for this, I ee the following:
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    But when the "view" (ie: submit" button for the form is
    pressed, I get redirected back to the same repeating record search
    result page, not to the record detail page.
    However, the numViews field in the record is getting properly
    incremented.
    I tried to get around this by changing the Update Record
    behavior "After updating, go to:" field to point to the record
    detail page, and tried passing a parameter tot he recordID I want
    to see details of, as a URL parameter, but that does not work.
    If I change the Update Record form action from
    <?php echo $editFormAction; ?>
    to
    record_detail.php?recordID=<?php echo
    $row_rsSearchResults['recordID']; ?>
    Then I am able to link to the detail page, but NOT update the
    numViews field.
    HOW can I fix this to both update the record, then jump to
    the detail page with a URL parameter being passed, when I click the
    "view" (submit) button o the form??
    Thanks in advance.

    If the user's computer doesn't know what to do with a TIFF file, I guess that Open button would be missing.  Tiff is not a web normal file format, or even a common one for graphics applications....

  • Update records in Reports

    Hi!
    Can I update records in Reports at the same time that Im printing theirs ?
    If It is posible, where ?
    Thanks in advance

    Actually that isn't true - you don't need to do an srw.do_sql().
    You can insert/update records anywhere that you can write PL/SQL (global report triggers, formula columns, format triggers, etc.). In your case I'd recommend using a formula column (since this is guaranteed to fire once per group record).
    Hope this helps,
    Danny

  • Can Sequence be started from 0

    I have to create a sequence that starts with 0 and increment by 1.
    I tried is but its return error. Any one help me how to do it.
    create sequence swbofbh_file_number increment by 1 start with 0
    ERROR at line 1:
    ORA-04006: START WITH cannot be less than MINVALUE
    Thanks,
    Atif

    The minvalue defaults to 1, so if you want to start at a value prior to that you have to specify minvalue.
    CREATE SEQUENCE swbofbh_file_number
      START WITH 0
      MINVALUE 0
    /Message was edited by:
    scott.swank

  • Error: "The search cannot be executed because the table has pending changes that would be lost."

    Hello,
    I'm working a developing an OA page that will displays the contents of an Oracle table and allows the user to update records in a table as needed.
    When I hit submit button to save the changes in the update page, the control goes back to main page (where all the table records are displayed). It displays the updated record with the new information.However when I hit "Go" button on the mainPG, I get the error "The search cannot be executed because the table has pending changes that would be lost. and the changes are not committed.
    ANy suggestions on where I should look will be greatly appreciated.
    Posting code for my controller
    =======================
              if ( pageContext.getParameter("saveRate") != null )
              personam.invokeMethod("saveRateToDatabase");
    Code from my AM
    =============
        public void saveRateToDatabase()
          getOADBTransaction().commit();
          System.out.println("40--After commit has been executed");
    Code from my VORowImpl
    ===================
    package cggv.oracle.apps.gl.server;
    import oracle.apps.fnd.framework.server.OAViewRowImpl;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.AttributeDefImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class xxCggGlRatesVORowImpl extends OAViewRowImpl {
        public static final int RATEID = 0;
        public static final int FROMCURRENCY = 1;
        public static final int TOCURRENCY = 2;
        public static final int FROMCONVERSIONDATE = 3;
        public static final int TOCONVERSIONDATE = 4;
        public static final int USERCONVERSIONTYPE = 5;
        public static final int CONVERSIONRATE = 6;
        public static final int MODEFLAG = 7;
        /**This is the default constructor (do not remove)
        public xxCggGlRatesVORowImpl() {
        /**Gets the attribute value for the calculated attribute RateId
        public Number getRateId() {
            return (Number) getAttributeInternal(RATEID);
        /**Sets <code>value</code> as the attribute value for the calculated attribute RateId
        public void setRateId(Number value) {
            setAttributeInternal(RATEID, value);
            //populateAttribute(RATEID, value);
        /**Gets the attribute value for the calculated attribute FromCurrency
        public String getFromCurrency() {
            return (String) getAttributeInternal(FROMCURRENCY);
        /**Sets <code>value</code> as the attribute value for the calculated attribute FromCurrency
        public void setFromCurrency(String value) {
            setAttributeInternal(FROMCURRENCY, value);      
        /**Gets the attribute value for the calculated attribute ToCurrency
        public String getToCurrency() {
            return (String) getAttributeInternal(TOCURRENCY);
        /**Sets <code>value</code> as the attribute value for the calculated attribute ToCurrency
        public void setToCurrency(String value) {
            setAttributeInternal(TOCURRENCY, value);
        /**Gets the attribute value for the calculated attribute FromConversionDate
        public Date getFromConversionDate() {
            return (Date) getAttributeInternal(FROMCONVERSIONDATE);
        /**Sets <code>value</code> as the attribute value for the calculated attribute FromConversionDate
        public void setFromConversionDate(Date value) {
            setAttributeInternal(FROMCONVERSIONDATE, value);      
        /**Gets the attribute value for the calculated attribute ToConversionDate
        public Date getToConversionDate() {
            return (Date) getAttributeInternal(TOCONVERSIONDATE);
        /**Sets <code>value</code> as the attribute value for the calculated attribute ToConversionDate
        public void setToConversionDate(Date value) {
            setAttributeInternal(TOCONVERSIONDATE, value);       
        /**Gets the attribute value for the calculated attribute UserConversionType
        public String getUserConversionType() {
            return (String) getAttributeInternal(USERCONVERSIONTYPE);
        /**Sets <code>value</code> as the attribute value for the calculated attribute UserConversionType
        public void setUserConversionType(String value) {
            setAttributeInternal(USERCONVERSIONTYPE, value);
        /**Gets the attribute value for the calculated attribute ConversionRate
        public Number getConversionRate() {
            return (Number) getAttributeInternal(CONVERSIONRATE);
        /**Sets <code>value</code> as the attribute value for the calculated attribute ConversionRate
        public void setConversionRate(Number value) {
            setAttributeInternal(CONVERSIONRATE, value);
        /**Gets the attribute value for the calculated attribute ModeFlag
        public String getModeFlag() {
            return (String) getAttributeInternal(MODEFLAG);
        /**Sets <code>value</code> as the attribute value for the calculated attribute ModeFlag
        public void setModeFlag(String value) {
            setAttributeInternal(MODEFLAG, value);      
        /**getAttrInvokeAccessor: generated method. Do not modify.
        protected Object getAttrInvokeAccessor(int index,
                                               AttributeDefImpl attrDef) throws Exception {
            switch (index) {
            case RATEID:
                return getRateId();
            case FROMCURRENCY:
                return getFromCurrency();
            case TOCURRENCY:
                return getToCurrency();
            case FROMCONVERSIONDATE:
                return getFromConversionDate();
            case TOCONVERSIONDATE:
                return getToConversionDate();
            case USERCONVERSIONTYPE:
                return getUserConversionType();
            case CONVERSIONRATE:
                return getConversionRate();
            case MODEFLAG:
                return getModeFlag();
            default:
                return super.getAttrInvokeAccessor(index, attrDef);
        /**setAttrInvokeAccessor: generated method. Do not modify.
        protected void setAttrInvokeAccessor(int index, Object value,
                                             AttributeDefImpl attrDef) throws Exception {
            switch (index) {
            case RATEID:
                setRateId((Number)value);
                return;
            case FROMCURRENCY:
                setFromCurrency((String)value);
                return;
            case TOCURRENCY:
                setToCurrency((String)value);
                return;
            case FROMCONVERSIONDATE:
                setFromConversionDate((Date)value);
                return;
            case TOCONVERSIONDATE:
                setToConversionDate((Date)value);
                return;
            case USERCONVERSIONTYPE:
                setUserConversionType((String)value);
                return;
            case CONVERSIONRATE:
                setConversionRate((Number)value);
                return;
            case MODEFLAG:
                setModeFlag((String)value);
                return;
            default:
                super.setAttrInvokeAccessor(index, value, attrDef);
                return;
        /**Gets xxCggGlRatesEO entity object.
        public xxCggGlRatesEOImpl getxxCggGlRatesEO() {
            return (xxCggGlRatesEOImpl)getEntity(0);

    Hi,
    Check these links:
    Oracle Apps: Search cannot be executed because the table has pending changes that would be lost
    Re: Getting error in search page search cannot be executed
    http://jneelmani.blogspot.in/2009/11/oaf-search-cannot-be-executed-because.html
    --Sushant

  • Table access Optimization ( VBAP- Sales Doc :item info  and LIPS- Del item.

    Hi All , Please optimise the below select statement .
    It is taking lot of time to fetch the records from Lips table since VGBEL and  VGPOS are not Key fields in LIPS table .
    Please suggest if there are any other ways to improve the performence of this quary .
    SELECT vbeln
             posnr
             matnr
             lfimg
             vgbel
             vgpos
             FROM lips
             INTO TABLE li_lips FOR ALL ENTRIES IN i_vbap
             WHERE vgbel EQ i_vbap-vbeln
             AND   vgpos EQ i_vbap-posnr.
    Thanks.
    Prithvi.

    Hi Prithvi,
    As told try creating secondary indexes with fields mndt vbeln vgbel and vgpos.Firstly sort the internal table i_vbap by vbeln and posnr and delete adjacent duplicates comparing the fields vbeln and posnr.One more important thing u need to check out is put a break point in both the select statements for i_vbap and li_lips and check out how many entries are available in i_vbap.See the entries that u get in the i_vbap table is purely based on the selection screen ie which fields that ur entering and what is the range.I think u probably might be giving sales org,sales office,vbeln and posting date range(erdat) in the selection screen.See whether u r getting the entries in the table according to range that ur giving.If u could give me the i_vbap table select statements logic that u've written and please tell me what fields that ur using in the selection screen and what values ur entering or fields range that ur entering can precisely give me the idea to surely improve ur performance.
    Please follow what i told u and try adding extra field in li_lips for the field erdat and check whether this erdat is existing in the i_vbap table and also in the selection screen too.Please let me know i'm sure i can solve ur issue.And dont forget to award points as this wud be my mark of appreciation.
    Or check with this select statements.
    sort i_vbap by vbeln posnr.
    delete adjacent duplicates from i_vbap comparing vbeln posnr.
    if not i_vbap[] is initial.
    If ur giving erdat as date range in the selection screen then try wth this code also.
    delete i_vbap where not erdat in s_erdat.
    *name of ur selection screen this wud get the precise data that u need for the date range and the entries will also be precise for all entries in the next select statement li_lips.
    SELECT vbeln
    posnr
    erdat "extra field
    matnr
    lfimg
    vgbel
    vgpos
    FROM lips
    INTO TABLE li_lips FOR ALL ENTRIES IN i_vbap
    WHERE erdat in s_erdat
    AND vgbel EQ i_vbap-vbeln
    AND vgpos EQ i_vbap-posnr.
    endif.
    Award points if helpful
    Thanks

  • My laptop has been stolen (the Baterds) now is wndows protected by password but if they get inside and use firefox with sync the can come a long way. how can i stop that from happening. can I block that laptop from syncing? thx Rick

    my laptop has been stolen (the Batserds) now is windows protected by password but if they get inside and use firefox with sync they could come a long way. How can i stop that from happening. Can I block that laptop from syncing? thx Rick

    * https://support.mozilla.com/kb/ive-lost-my-phone-how-do-i-deactivate-sync

Maybe you are looking for

  • SAPPHONE (OR) ICI.

    Dear all, We want to enable E-mail functionality through our CIC Webclient. But we are using SAPPHONE interface to connect to AVAYA (CTI) system. As my understanding from SAP Help documentation that, ICI supports Telephony and E-mail functionlities.

  • Oracle length semantics migration documention

    Due to the oracle documention to migrate length semantics: To convert an existing schema and its associated data from byte semantics and a single-byte character set to character semantics and a multibyte character set, such as UTF-8, you need only fo

  • Need information on SCCM redundancy

    Hi All, I am new to SCCM. Our company is planning for SCCM 2012 R2 Deployment, And the question here is about redundancy in SCCM. If i deploy a stand alone SCCM Server then i cannot expand it or add another server right ? Also what is the redundancy

  • Photoshop CS6 UNWORKABLE on Mavericks!

    Hello fellow "apples" I've a late 2012 Macbook Pro (non retina) with 2,6 GHz i7 8GB Ram and 750HDD Since i've updated the OS to mavericks yesterday I've been struggling with photoshop CS6, it can work just fine for a minute to completely freeze for a

  • Online when im NOT

    I Still found many many threads about this problem. Im shown online permanently even when im not. This is really annoying and outsocializing me actually from my skypefriends..because they see me online all the time, try to contact me and feel ignored