Question about box

In the tutorial 'how to 6 to use checkboxes' 'Advanced tutorials Apex' in the chapter "Adding checkboxes for each row in the report" this writing: + "APEX_ITEM is a package Oracle Application Express provided that you can use to dynamically generate some elements.» When a page is sent, the values of each column are stored in the tables of overall package, you can reference using the variable APEX_APPLICATION of PL/SQL. G_F01 in APEX_APPLICATION. G_F50. In this exercise, the value passed to product_id is 1, so you are referencing the column using the APEX_APPLICATION of global variable values. G_F01. » +

My question is: if I create several boxes a same page how do I know what the APEX_APPLICATION variables. G_Fx is the reference for the box determined? How do I do if the checkbox refers to the APEX_APPLICATION variable. G_Fx or APEX_APPLICATION. G_Fy?

Hello

Yes, the check boxes on the reports are different from those on the forms.

In the reports (which is what you said you were using!), check boxes are created as:

<input type="checkbox" name="f01" value="7989"/>

and you can use the APEX_APPLICATION. G_F01 feature to browse through these.

For forms, the boxes are created as:

<input type="checkbox" name="p_v01" value="7947" id="P58_CHECKBOXES_0" /><label for="P58_CHECKBOXES_0">A1</label><br />

Note that the value of 'id' is the name of the element (in this example, P58_CHECKBOXES) page followed by a sequential number - the above is the first element, the second element will be P58_CHECKBOXES_1 etc.

In this case, APEX_APPLICATION. G_Fnn does not apply. The values will be presented as a list delimited by a colon to values that will store the Apex on the database column that depends on the item page. You can use javascript to loop through the checkboxes on the page if you need to. What to do with the data?

Andy

Tags: Database

Similar Questions

  • Questions about tables in text boxes

    When I convert the text to a table, there is a small space between the text block and the table. I have two questions about this:

    1. Is it possible to remove this gap? I put the text block options set spacing to 0 and gutter to 0 and spacing of table before and after to 0.
    2. Is it possible to create a table that is not in a block of text, especially when converting text to a table?

    Attached is a few screenshots that I hope will be useful. In the first image, East of the limit of the framework text in magenta and the structure of the table is in light blue. The gap between the blue magenta and light vertical lines on the left, that's what I want to remove.

    Screen shot 2012-05-11 at 11.45.46 AM.pngScreen shot 2012-05-11 at 11.50.47 AM.pngScreen shot 2012-05-11 at 11.53.05 AM.png

    Tables are always in a text frame, and in fact, they are part of a paragraph, so I would check the assigned to this paragraph paragraph style and see if there is a left indent applied, or perhaps a paragraph alignment is set to something other than the left.

  • Questions about nb200

    I recently bought a mini nb200 with windows 7 and I have a few questions about it. How can you set up your email, I was willing to put up with Outlook Express, but I don't know if I can. Also, is there a way to get a paper copy of the user manual?

    You can download and install a new e-mail program when you download Windows Live via Microsoft Update. You can select the components of Windows Live, you want to include by checking a box for each you want. I installed all the. Or you can use Outlook, if you have Microsoft Office and you want to install it.

  • Questions about Stor.e TV +.

    Does anyone have a contact point to raise a complaint about the lack of service from Toshiba? I spent £160 on a TV + Stor.e and did have some problems with it, as you can see from the few posts that I raised. After spending £160 on a point I don't understand why if the forum is the only option to support what he is no Toshiba engineers on this issue, who are able to answer my questions. I do not expect a 24 / 7 hotline for £160 I spent, but it would be good to know that a Toshiba engineer could answer my questions about their products. Especially since it's the second one I had which suffers from a cosmetic defect, I had to stick to feet about it as the Unit came with 4 pads ride around the box. I also have my doubts about the HDMI because it seems to be very sensitive to any movement in the area, causing the connection to remove.

    I got a Western Digital box media for more than five years and had no problem with this, the only reason why I changed, it was to make use of the connection to the local network, the HDMI connection and the fact it supported more than file formats. FSR this device was abit of a disappointment for me. So if someone could point me in the right direction, I would be very grateful.

    Hello

    I can understand that you are not happy with the current situation and usually if you buy a product it should properly expect and do no problem.

    As you probably already seen here it s a user to only user forum. This means that you can speak with normal people like you and me and there is no official support from Toshiba.

    In your case, it would be best if you contact an authorized service provider or call the Toshiba UK. The phone number, you can find on the site of Toshiba UK Web:
    http://UK.computers.Toshiba-Europe.com

    Just give the guy a call and explain your situation. I'm sure they can give you a detailed answer and if your TV Stor.e + must be repaired or not. When warranty hardware repair is free.

    I hope I could help you a little bit :)

  • Question about support for LabVIEW DLLS and Unicode

    Hello

    I have a question about LabVIEW and DLL functions calls.

    I use a DLL (sorry, I can't share it) that was written in C. It was written to support Unicode and non-Unicode function calls.

    The Unicode function is valid, then FunctionNameW is called if FunctionNameA is called.

    I am building a few VI to access the library. I have the regular functions of FunctionNameA work.

    My question is, does LabVIEW support versions of function FunctionNameW Unicode, and if so is it necessary Although LabVIEW is already working with the standard function call?

    Am I being redundant or what should I build in Unicode support?

    The first time I tried to test the Unicode functions, I had an error, and I guess this is a system setting.

    Thank you for your time in advance.

    DB_IQ wrote:

    I don't think I have TO implement the Unicode, but I want if I can.

    For what I do, I think almost it is not serious. But I wanted to know if it could be used.

    The short answer is "Yes, you can do it."  However, it may open a new Pandora's box.  If you're not careful, problems and complications that can still spread to other projects that are not using Unicode!  It is better not to summon this monster unless there is absolutely no other way to do the job.

  • Ask questions about the HP Pavilion 14-V041TX Bluetooth

    Hello, sry for asking questions about simple things.

    How to activate bluetooth for laptop HP Pavlion 14-V041TX?

    Or how to bluetooth to detect other bluetooth devices?

    coz already try to use my smartphone, but cannot detect any bluetooth device or laptop.

    for what I know, I already install the driver for bluetooth.

    Maybe there's another driver, that I'm missing?

    Thank you.

    SRY for my bad English.

    HI @Ton1_qrenz ,

    Welcome to the HP Forums!

    It's a great place to find answers.

    You have the best experience in the HP forum, I would like to draw your attention to the Guide of the HP Forums Learn how Post and more

    No worries about your English.  I believe that I understand your question, and if not, you can specify if you must post back.

    I understand that you are unable to detect Bluetooth devices.

    Here is a document to help you with this company. There are links that it contains other documents that can also be of assistance.

    Understand and troubleshoot Bluetooth wireless technology (8.1 Windows, 8, 7, Vista, XP)

    If the problem persists, try the following steps.

    Step 1. Go to Device Manager
    Step 2. Right click on "Bluetooth device" you want
    Step 3. Select "update driver software... »
    Step 4. Choose "Browse my computer for driver software".
    Step 5. Choose "Let Me pick from a list of drivers for devices on my computer.
    Step 6. Select "Ports (COM & LPT)"
    Step 7. Select "Microsoft" to the list of "manufacturers".
    Step 8. Finally select "Standard series via a Bluetooth connection.

    If you are unable to connect to a Bluetooth device, try the following:

    Step 1. Search for 'Change device' in the start menu in Windows 8.
    Step 2. Click on where it says change device installation settings.
    Step 3. Select No, let me choose what to do option.
    Step 4. Check the automatically get the device app option
    Step 5. Click on save changes to save the settings that you select

    So, you can try this

    Step 1: Go to RUN (Windows Logo + R) and type "services.msc" and Enter
    Step 2: Now find 'Bluetooth Support Service' and double click it
    Step 3: Now click on the Log on tab and type "Local Service" without the quotes
    Step 4. Click on "account".
    Step 5: Now remove any authorization of passwords the password field blank
    Step 6: Below the upper left title should be a hyperlink 'Start' click

    You can also view tab management power and unchecked the box "Allow the computer to turn off this device to save power."

    If it is still not resolved, I suggest contacting HP support for further assistance.

    Please contact our technical support at the 800-474-6836. If you are outside the United States / Canada region, please click the link below to get help from your region number. Phone goes everywhere in the world

    Good luck!

  • Questions about discussions...

    Hello

    I have a new app to do that requires network access.

    I have read this EXCELLENT post from peter_strange:

    http://supportforums.BlackBerry.com/T5/Java-development/connecting-your-BlackBerry-http-and-socket-c...

    Because I can't use BIS - B because I'm not a partner of the Alliance, I wanted to take a look at the new OS 5.0 network API and see how it works.

    I know that network connections should be performed in a separate thread.

    I'm far from being an experienced Blackberry developer... so I have a few questions about discussions.  I looked around the Internet, read on the forum, read the documentation, did some tests and so far, I came up with this code:

    SerializableAttribute public class HTTPConnection extends UiApplication {}
    Public Shared Sub main (String [] args) {}
    HTTPConnection PAP = new HTTPConnection();
    theApp.enterEventDispatcher ();
    }

    public HTTPConnection() {}
    pushScreen (new HTTPConnectionScreen());
    }
    }

    class HTTPConnectionScreen extends form {}
    public HTTPConnectionScreen() {}
    setTitle ("HTTPConnection");
    Add (new RichTextField ("choose a type of connection :"));

    final RadioButtonGroup = new RadioButtonGroup() rbGroup;
    RadioButtonField radioButtonF1 = new RadioButtonField ("Direct TCP", rbGroup, false);
    RadioButtonField radioButtonF2 = new RadioButtonField ("WAP 1.0/1.1", rbGroup, false);
    RadioButtonField radioButtonF3 = new RadioButtonField ("WAP 2.0", rbGroup, false);
    RadioButtonField radioButtonF4 is new RadioButtonField ("BES/MDS", rbGroup, false);.
    RadioButtonField radioButtonF5 = new RadioButtonField ("BIS-B", rbGroup, false);
    RadioButtonField radioButtonF6 = new RadioButtonField ("WiFi", rbGroup, false);
    Add (radioButtonF1); Add (radioButtonF2); Add (radioButtonF3); Add (radioButtonF4); Add (radioButtonF5); Add (radioButtonF6);
             
    FieldChangeListener listener = new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    ConnectionThread ct = new ConnectionThread (rbGroup.getSelectedIndex () + 1);
    CT. Start();
    }
    };
             
    ButtonField buttonField = new ButtonField ("Connect", ButtonField.CONSUME_CLICK);
    buttonField.setChangeListener (listener);
    Add (buttonField);
    }

    / * method of onSavePrompt override default to avoid being asked if I want to record every time * /.
    protected boolean onSavePrompt() {}
    Returns true;
    }
    }

    class ConnectionThread extends Thread {}
    private int transportType;
    public ConnectionThread (int n) {}
    transportType = tt;
    }
        
    public void run() {}
    ConnectionFactory connFact = new ConnectionFactory();
    ConnectionDescriptor connDesc = connFact.getConnection ("URL", transportType, null);
    If (connDesc! = null) {}
    try {}
    HttpConnection httpConn = (HttpConnection) connDesc.getConnection ();
    httpConn.setRequestMethod (HttpConnection.POST);
    httpConn.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
    OutputStream out = httpConn.openOutputStream ();
    out. Write (Integer.ToString (transportType). GetBytes());
    int responseCode = httpConn.getResponseCode ();
    If (responseCode == HttpConnection.HTTP_OK) {}
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    Dialog.Alert ("- SUCCESSFUL CONNECTION-");
    }
    });
    }
    If (httpConn! = null) httpConn.close ();
    } catch (IOException e) {}
    System.Err.println ("IOException Caught:" + e.getMessage ());
    }
    }
    }
    }

    In fact, this code works very well... but I want to improve it, and I have a few questions:

    1. I think that right now, every time I click on the 'Connect' button, I start a new thread. I would like to end this thread in the "run" method, but I don't really know how to access the variable 'ct' from there.   Counsel on how to do it?  Or maybe always use the same thread until my application is closed?

    2. in the FieldChangeListener of my "Submit" button, I want to access the value of radio box.  I did work, but I had to do my 'final' variable  What is the right way to do it?

    3 - to display a dialog box with 'Successful connection', I just wanted to write something in my main screen.  How I do that?

    I'm just a bit confused as to just what set up when you use a separate thread.

    Thanks for your advice!

    Edit: Hidden URL I connect to...

    That's what I call a good question! (now I'm wondering why the forums do not work with opera correctly, in any case, here my baldy to the answer format): 1. your thread "dies" when it's over, no need to close it. 2 Yes 3. You can use a reminder. See for example http://www.javaworld.com/javaworld/javatips/jw-javatip10.html

  • Questions about support

    Dear community of cloud!

    I have a few questions about the service of adobe support.

    First of all, I would ask which includes the support service. I am also curious about the length of the reaction and the way they treat the problem can occur. Receive problem reports directly into the program I use, or do I have to write a separate message in a service address or Skype etc are decent ways to communicate with them?

    Thanks in advance for your answer!

    Service varies down the line insofar as this support is provided and when/how quickly it is provided.  Some people are very satisfied with the support that they get and others are not.  These user forums are one of the support options and usually you will get a response fairly quickly, and if you provide a detailed problem statement you can usually get a solution.  If a solution is to contact Adobe customer service, there is not much anyone can do here in the forums except to the provide information to contact. To contact Adobe Customer Support...

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • HTML (Web), I have a question about the models.

    Hello CC animate developers.

    New features are really good.

    HTML (Web), I have a question about the models.

    <! DOCTYPE html >

    < html >

    < head >

    < meta charset = "UTF-8" >

    < title > $TITLE < /title >

    < meta name = "ad.size" content ="width = $WT, height = $HT" > "

    $CREATEJS_SCRIPTS

    $SCRIPT_START

    var canvas, stage, exportRoot;

    function init() {}

    $CJS_INIT

    }

    $PLAYSOUND

    $SCRIPT_END

    < script type = "text/javascript" >

    "clickTAG" var = "";

    < /script >

    < / head >

    < onload = "init (); the body"style =" background-color: #D4D4D4; " margin: 0px; ">

    < a href = "javascript:window.open (window.clickTag)" >

    < div style = "position: absolute;" cursor: pointer; box-sizing: border-box; border: 1px solid #000000; overflow: hidden; height: $HTpx; Width: $WTpx; Background: rgb (255, 255, 255.0); "> < / div >

    < canvas id = "$CANVAS_ID" width = "$WT" height = "$HT" style = "background-color: $BG" > < / canvas >

    < /a >

    < / body >

    < / html >

    In the example above, the model;

    < Meta name = "ad.siz of" content = "width = $ WTI height = $ HT" > "

    and

    < Div style = "position: absolute;" cursor: pointer; box-sizing: border-box; border: 1px solid # 000000; overflow: hidden; height: $HTpx; Width: $WTpx; Background: rgb (255, 255, 255.0); "> < / div >"

    I use labels. But these tags in the template and import, it gives an error does not occur.

    I think it was a mistake. I want to help in this regard.

    $ HT or Properties $WT , I get an error when I use elsewhere.

    I think I should be able to use anywhere I want.

    The same problem here - I worked around by some DRM models with different values of ad.size, but it's a solution quite short-seight

    Also - you are not able to create the model with transparent background by removing style = "" background-color: $BG ' as it also throws errors - is the only solution that I managed to get updates style = "background-color: $BG; background: none; ", but it's a really bad way of coding things.

    It would be really great to have freedom in changing patterns.

  • Question about InDesign...

    Question about InDesign...

    If I'm currently editing a text and the edge of the box is a line of "in dotted blue" means that the text is locked for editing? If yes how do I change the text? When I try to click inside the text, that it doesn't allow me to type in the text box.

    The dotted blue line indicates that the item is on a Master Page. You can edit in the master page, or shift + command + click (mac) to open it on the page of your document.

    Best practice is to avoid having things on master pages that will need to be unlocked.

  • The specific question about the placement of an image into text.

    Hello, I had a question about the placement of an image into text.

    I did the contours to create text to place the image inside. My text is 5 words and two lines inside the box.

    When I do create contours he gives me 2 transparent route separate layers for the top and the bottom line.

    How will I be able to do that in a single layer of compound to place image that expands to the two lines?

    First of all, there are two ways of describing the type. The default value creates anchored objects. You want a separate object, so hold down the Option/Alt key when you create outlines. Drag the new contours to separate the text block.

    It is useful to open the layers panel and view the contents of the layer. You have created a group which consists of two transparent traces. In the layers panel, expand the layer so you can see the structure. Shift-select the two transparent traces. (Make sure that the group is not selected.)

    Then choose object > tracks > make a compound path. This makes the two transparent tracks into one. Then, you can place or paste into the single compound path.

  • Question about CPU Ready time %

    Hello Vmware experts.

    Small question about time loan cpu in esxtop. I have a couple of the virtual machine that has been entrusted to 4 vCPU. When you view their stats in esxtop they indicate the highest term of loan from CPU. I was wondering if this figure is the result of adding the ready time of each vCPU? For example, a 4 x vCPU VM with ready time of 10%, does it really mean 2.5% by vCPU? Should I be concerned about ready time of 10%? I read that the multiple assignment of vCPU can unnecessarily cause time CPU ready. How others decide on how many vCPU they must assign to VM here?

    OK, just realised that was more than just a small question... anyway, would be great if someone could make all this a bit clearer for me.

    Thank you

    BTW, my hosts CPU usage to sit at an average of 25%.

    In vSphere they eased the scheduling of multiple vCPU co even more so that only the vCPU who got ahead of the rest is stopped.  It is always advisable to start with a single vCPU and work your way up if necessary.

    In esxtop you can use the e command to extend the CPU statistics.  In several vCPU machines this will let you see the playing time of each CPU (which should add until you have seen earlier) and it will also allow you to see the % used for each processor.  This should allow you to see if the two vCPU are properly used in a box of vCPU multi.   I had also the CSTP % field shows which is the stop of co and will give you an indiciation of how often vCPU on the machine stopped to allow the other CPU to stand.

    Great pdf on the CPU scheduler in vSPhere can be found here http://www.vmware.com/files/pdf/perf-vsphere-cpu_scheduler.pdf

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

    Twitter: http://twitter.com/mittim12

  • Questions about student discount for CS6

    I know I want to get the premium Production CS6 from B & H, but just recently that I realized that my class of media production could possibly make me eligible for a discount for students. I have a few questions about get a student discount I've ever gotten before.

    My first question is: should I still pay the rest of the full price? Or, more important still, the student version will stop working after a period of time?

    My second and more important question is about installing on more than 1 PC. I am currently on my beast of a laptop. The iMac to my school with short CS6 smooth like butter, and it's spec lower than my laptop. Despite this, I plan to get a PC in the future office of Monster for my productions and I'm confused about my rights to installation with a copy of the student. I understand very well that I can't install it on the computer of another of Kathy; only on my own computer. He mentions (for teacher I guess) you will need to purchase additional licenses for installation on other computers. This means that when I buy a new computer, I need to buy a new license as well? Or I can use the one provided in the box?

    Any clarification on these questions would be appreciated. Thank you

    Your license does not expire and you never have to pay the price difference. You can install the suite on one type of computer, even if you have 2 activations. A series of PC does not work on Mac and vice versa. Only 2 PC installs will work or 2 Mac ones, respectively. The activations can be managed for in applications or by giving the customer a call to reset, if you their exhausted and forgot to turn it off.

    Mylenium

  • Questions about the installation of ColdFusion 9.0.2 version of existing in version 9.0.1

    Hello

    I'm currently running ColdFusion 9.0.1 enterprise edition and plan to upgrade to version 9.0.2 version. I understand that this requires uninstalling existing 9.0.1 and perform a new installation of version 9.0.2 version. My concerns are below:

    1. for the installation of the 9.0.2 version the 9.0.2 installer (demo / trial version) must be downloaded and the existing serial number (used in version 9.0.1) can be given during installation to convert it in fully registered mode - please correct me if my interpretation is incorrect here. My question is will the existing serial key (as shown in the page Admin of CF 9.0.1 version version) work with the 9.0.2 version as well?

    2. There are many features that are present in the current 9.0.1 version - for example the sources of data configured in the Admin see Y page there a way I can save these configurations of the existing version and to migrate settings to the new 9.0.2 install, or what I have to do the entire configuration manually after the installation of new? Data sources is something I can think; What other configurations can I save, if such a provision is available?

    3. in the installation of the 9.0.2 version there is a question about "configure the Web server for CF Connector" allows me to add Web/sites Internet servers during installation. If I select "built-in Web server" as the option (so do not configure any Web-site Web server), can I change this and configure Server/site later, after compeleting installation?

    What would be the things I need to be careful during this installation to version 9.0.2 from 9.0.1?

    Thank you!

    Arun-

    I did a successful version 9.0.2; installation answering my own questions, for the benefit of future development-

    1. Yes. Only the serial number is required (as shown in the Page of the CF Admin of existing facility)

    2 configurations (for example: data sources) can be exported. Go to CF Admin Page, click on packaging & deployment, click on Archives of CF. Basically, you export settings as files with the extension archive. car. Once exported from the current installation, it can be imported by clicking on the button deploying car file.

    3 server configuration can be modified (Add/Remove) by using the "Web Server Configuration Tool" which is installed by default with CF 9. You can find it under program files (windows OS).

    I had some problems during the installation. After installation, the CF Admin page would not be made. Virtually no cfm page don't take charge, because the extension is not known by the IIS (or the server you are using). To set this up, use the "Web Server Config Tool" mentioned above. This launch and activate the check box that is on the rendering cfm pages (forgot the exact name). Once this is done, cfm pages must load. I had to enable this and then do a reinstall but.

    -arun

  • A few Questions about the advanced Actions window

    Hello

    I have a few questions about the progress of the Actions (using the version of track CP7)

    1. What is the function of the action to "continue?"   Out of the peak action and advance the playback cursor?

    2. What does mean this comment "Nested calls to action advanced is a nice improvement."? Is the advanced decision at the top of a page of action tabs?

    3. What is the function of the option "custom" in the IF statement - "preform action if - custom", it doesn't seem to do anything for me?

    4. where can I get information about the timeline / playhead interaction with advanced actions, i.e. where the playhead is going again at the beginning of the slide. slide custom question - display button, e.g. verification of responses, comments - when all the objects are at the beginning of the timeline. I'm looking more for the read head of infromation functionality rather than how to implement this type of question.

    Thank you

    Donal.

    Continue: If an advanced standard action is triggered by a button, this will not trigger the playback head. If you want out, you can use continues. Continue can also be a choice in a conditional action, when one orders branching has nothing to special, but in advance. Continuous is also the "dummy" statement/command (this is the official name of a line in the dialog box advanced actions) If a statement has become unusable due to some reasons, it will be replaced by continue

    There is no nested call stocks advanced possible right now, one of my many feature requests. It would be sort of a subroutine that you can use over and over again, instead of having to create each time when necessary.

    A decision is one of the conditions to be an advanced conditional action. They allow to create more complex actions, as a loop or arrays are not possible. All decisions are executed in sequence and always.

    Custom: is a combination of or but it is rather limited, because you cannot use parentheses.

    I guess you'd better visit my blog if you want to learn more about the advanced actions.

    http://blog.lilybiri.com/

    I also did several Webinars on stocks advanced, last this afternoon (on the sharing of the actions) for Adobe. They are all available on request.

    Lilybiri

Maybe you are looking for

  • mail to gmail business applications

    Thanks in advance for your attention to this request. I wish that our client apps to open gmail "compose mail" when you click on an email address. In Applications, I should be able to choose or there should be a script to load this feature. The modul

  • Pavilion DV7 - 2273cl: CPU upgrade (DV7 - 2273cl)

    Hi all I think to get an upgrade of processor on this laptop (Core 2 Duo t 6600 is pretty slow). I plan to spend to Q9100 (see http://ark.intel.com/products/37033/Intel-Core2-Quad-Processor-Q9100-12M-Cache-2_26-GHz-1066-MHz-FSB ) Do you know if it wi

  • ERRO dx80070002

    dx80070002

  • OfficeJet pro 8625: display is not lit but the printer is powered

    8625 Officejetpro screen won't lite printer prints but cannot use the screen to select one of the options

  • Starter to Windows 7 home Premium Edition

    Hi, my question is if I already have a cd of windows 7 Home premium, but no cd key, can I register this version using a key with a copy of the windows home Premium starter edition? I have a computer that has windows vista on it self would like to loa