Using alias name from view

Can I create somehow a view like this one:
CREATE VIEW clerk_view AS
   SELECT employee_id as ei, last_name as ln, department_id as di
   FROM employees
   WHERE job_id = 'PU_CLERK' ;and using this view with aliases, e.g.:
select * from clerk_view where ln = 'Mickey';
My Oracle database version is 11.2.0.3
Best.

Hi,
lesak wrote:
So can you tell me what I'm missing in above CREATE statement? Sorry, no, not without knowing exactly what you're doing. That's why you need to post a complete test script that people can run to re-create the problem. Except for the identifier LN, there's nothing wrong with the code you posted per se , but there could be millions of things wrong with how how you're trying to use it. Even if I could post millions of suggestions, you wouldn';t want to read them all, just to fond the one or two that apply to your case. So way exactly what your case is. Post a complete test script that creates and populates the table (if necessay), calls the view, tries to use the view, and gets the error.
When I create view in the same way in production and use alias name, I've got following error: ORA-00904. Not everyone who wants to help you has all the error codes memorized. That's why you should post the complete error message.
So Oracle don't know that my employee_id or other column have also alias name?!Sure, it will know the alias name. That's exactly what aliases are for.

Similar Messages

  • How to use Alias name in OData service in SAP HANA

    Hi,
         I need to change one column name with alias of another name in odata service definition or odata url running in rest client. I am trying to give alias name with as key in the service definition like sql query.
    ex:
    There is one table with column name of PRODUCT_ID. I exporting that table via odata service to SAP UI. In the UI i dont want the product id column as PRODUCT_ID. It should be ike "Prodcut". Like we are using in SQL example
    select "PRODUCT_ID" as "Product" from "producttab";
    But i can't use as key for alias name. So i am getting syntax error.
    I have tried in rest client also ie executing odata file in rest based service. But i got error only.
    If anyone knows about this alias name in odata service, Please help me to resolve this issue..

    Hi Thomas
         Thanks for your reply.
         Actually in odata service definition i am using attribute and calculation views only. But in some case from the model view itself i need to use some alias names to the UI through odata service.
         For example in attribute view i have some columns with name col1,col2... I am getting those columns in UI using  odata service, for particular col2 column i need to change column name as product. And i am using the same view as source of another odata service in that service i need to change that column name as productname.
         In that case i need alias name usage. So that only i am searching alias keyword in odata service.
         Is there any possibility to use alias names in odata service.

  • Messages will only use AIM names from Contacts

    Hi, all of a sudden, Message will only use AIM names from my Contacts when I create a new message. In the example below, all three of these people have multiple other address in Contacts that Messages used to present as options but, as you can see, now I only get the AIM names.
    Does anybody know what might be happening here?
    Thanks

    HI,
    Bottom left of that pic (out of sight) will be a extra info spot that tell you how many Non iMessages accounts you have logged in and tells you the Description Names (taken from the Preferences > Accounts)
    If in the Preferences > General Section you have Unticked the item about "Gather(ing) all Accounts into one List" then you will get a similar List in the Window Menu (of Logged in Accounts).
    If only an AIM valid ID/Screen Name remains Logged in then the "To" drop down will only show AIM Buddies.
    A Pic I have used elsewhere showing the Prefs/Accounts with the Descriptions and the Window Menu plus a arrow to the Main Messages window list of same
    I restricted my Logins to one AIM (Main AIM - highlighted) and a Google Login and the Bonjour account.
    As Eric says make sure other accounts are Logged in or Enabled.
    10:16 PM      Saturday; August 3, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Get alias name from dynamic query

    Hi All,
    I would make a plsql function using dynamic query.
    And the function takes a whole sql query as a parameter.
    The main issue is that the function should get what alias or columns were queried.
    For example,
    FUNCTION_GET_QUERY_ALIAS('SELECT 1 AS col1, 2 AS col2 FROM DUAL')
    Inside the function, it should find the alias name COL1 and COL2.
    I'd appreciate for any help.

    I have modified print_table as function and made it to satisfy your needs.
    SQL> CREATE OR REPLACE TYPE my_column_object AS OBJECT(ruw_number integer, column_name VARCHAR2(1000), column_val VARCHAR2(1000))
      2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE my_table_type AS TABLE OF my_column_object
      2  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION print_table( p_query in varchar2 ) RETURN my_table_type PIPELINED
      2  AS
      3      l_theCursor     INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
      4      l_columnValue   VARCHAR2(4000);
      5      l_status        INTEGER;
      6      l_descTbl       DBMS_SQL.DESC_TAB;
      7      l_colCnt        NUMBER;
      8      l_rcount           INTEGER := 0;
      9  BEGIN
    10      DBMS_SQL.PARSE(  l_theCursor,  p_query, dbms_sql.native );
    11
    12      DBMS_SQL.DESCRIBE_COLUMNS( l_theCursor, l_colCnt, l_descTbl );
    13
    14      FOR i IN 1 .. l_colCnt
    15      LOOP
    16          DBMS_SQL.DEFINE_COLUMN(l_theCursor, i, l_columnValue, 4000);
    17      end loop;
    18
    19      l_status := DBMS_SQL.EXECUTE(l_theCursor);
    20
    21      WHILE ( DBMS_SQL.FETCH_ROWS(l_theCursor) > 0 )
    22      LOOP
    23             l_rcount := l_rcount + 1;
    24          FOR i IN 1 .. l_colCnt
    25          LOOP
    26              DBMS_SQL.COLUMN_VALUE( l_theCursor, i, l_columnValue );
    27
    28              PIPE ROW(my_column_object(l_rcount,l_descTbl(i).col_name,l_columnValue));
    29          END LOOP;
    30      END LOOP;
    31
    32     RETURN;
    33  end;
    34  /
    Function created.
    SQL> select * from table(print_table('select * from emp'))
      2  /
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             1 EMPNO                7369
             1 ENAME                SMITH
             1 JOB                  CLERK
             1 MGR                  7902
             1 HIREDATE             17-DEC-80
             1 SAL                  800
             1 COMM
             1 DEPTNO               20
             1 DIV                  10
             2 EMPNO                7499
             2 ENAME                ALLEN
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             2 JOB                  SALESMAN
             2 MGR                  7698
             2 HIREDATE             20-FEB-81
             2 SAL                  1600
             2 COMM                 300
             2 DEPTNO               30
             2 DIV                  10
             3 EMPNO                7521
             3 ENAME                WARD
             3 JOB                  SALESMAN
             3 MGR                  7698
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             3 HIREDATE             22-FEB-81
             3 SAL                  1250
             3 COMM                 500
             3 DEPTNO               30
             3 DIV                  10
             4 EMPNO                7566
             4 ENAME                JONES
             4 JOB                  MANAGER
             4 MGR                  7839
             4 HIREDATE             02-APR-81
             4 SAL                  2975
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             4 COMM
             4 DEPTNO               20
             4 DIV                  10
             5 EMPNO                7654
             5 ENAME                MARTIN
             5 JOB                  SALESMAN
             5 MGR                  7698
             5 HIREDATE             28-SEP-81
             5 SAL                  1250
             5 COMM                 1400
             5 DEPTNO               30
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             5 DIV                  10
             6 EMPNO                7698
             6 ENAME                BLAKE
             6 JOB                  MANAGER
             6 MGR                  7839
             6 HIREDATE             01-MAY-81
             6 SAL                  2850
             6 COMM
             6 DEPTNO               30
             6 DIV                  10
             7 EMPNO                7782
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             7 ENAME                CLARK
             7 JOB                  MANAGER
             7 MGR                  7839
             7 HIREDATE             09-JUN-81
             7 SAL                  2450
             7 COMM
             7 DEPTNO               10
             7 DIV                  10
             8 EMPNO                7788
             8 ENAME                SCOTT
             8 JOB                  ANALYST
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             8 MGR                  7566
             8 HIREDATE             19-APR-87
             8 SAL                  3000
             8 COMM
             8 DEPTNO               20
             8 DIV                  10
             9 EMPNO                7839
             9 ENAME                KING
             9 JOB                  PRESIDENT
             9 MGR
             9 HIREDATE             17-NOV-81
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
             9 SAL                  5000
             9 COMM
             9 DEPTNO               10
             9 DIV                  10
            10 EMPNO                7844
            10 ENAME                TURNER
            10 JOB                  SALESMAN
            10 MGR                  7698
            10 HIREDATE             08-SEP-81
            10 SAL                  1500
            10 COMM                 0
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
            10 DEPTNO               30
            10 DIV                  10
            11 EMPNO                7876
            11 ENAME                ADAMS
            11 JOB                  CLERK
            11 MGR                  7788
            11 HIREDATE             23-MAY-87
            11 SAL                  1100
            11 COMM
            11 DEPTNO               20
            11 DIV                  10
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
            12 EMPNO                7900
            12 ENAME                JAMES
            12 JOB                  CLERK
            12 MGR                  7698
            12 HIREDATE             03-DEC-81
            12 SAL                  950
            12 COMM
            12 DEPTNO               30
            12 DIV                  10
            13 EMPNO                7902
            13 ENAME                FORD
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
            13 JOB                  ANALYST
            13 MGR                  7566
            13 HIREDATE             03-DEC-81
            13 SAL                  3000
            13 COMM
            13 DEPTNO               20
            13 DIV                  10
            14 EMPNO                7934
            14 ENAME                MILLER
            14 JOB                  CLERK
            14 MGR                  7782
    RUW_NUMBER COLUMN_NAME          COLUMN_VAL
            14 HIREDATE             23-JAN-82
            14 SAL                  1300
            14 COMM
            14 DEPTNO               10
            14 DIV                  10
    126 rows selected.
    SQL>Thanks,
    Karthick.
    Edited by: Karthick_Arp on Sep 23, 2008 12:11 AM

  • How to use column name from subquery result set.

    I have these 2 tables
    SQL> select * from temp
      2  ;
    TABLE_NAME                     COLUMN_NAME                    TYPE
    lst                            name                           STATUS
    lst                            val
    SQL> select * from lst;
    TYPE                           NAME
      VAL
    STATUS                         Pending
      Pendiente
    STATUS                         Closed
      Cerrado
    STATUS                         ABC
      ABSI want to select column_name from temp table and generate select statements.
    select name from lst;
    select (select COLUMN_NAME from temp where rownum<2) from lst;
    SQL> select (select COLUMN_NAME from temp where rownum<2) from lst;
    (SELECTCOLUMN_NAMEFROMTEMPWHER
    name
    name
    nameoutput I expect is
    SQL> select name from lst;
    NAME
    Pending
    Closed
    ABC

    MichaelS wrote:
    Can I do it using SQLe.g.:)
    I was just about to post a similar approach (which should work from 10.2 and upwards) :
    SQL> SELECT value(x).getRootElement() col_name,
      2         extractvalue(value(x),'*') col_value
      3  FROM ( SELECT column_name, table_name
      4         FROM temp
      5         WHERE rownum = 1
      6       ) v
      7     , XMLTable(
      8        '/ROWSET/ROW/*'
      9        passing dbms_xmlgen.getXMLType('SELECT '||v.column_name||' FROM '||v.table_name)
    10       ) x
    11  ;
    COL_NAME        COL_VALUE
    NAME            Pending
    NAME            Closed
    NAME            ABC

  • How to use alias name in where clause

    Hello,
    DECODE (item.inv_type,'OT', (DECODE (item.attribute2, 'STONE', 0, xfer.release_quantity1 * xfer.attribute10)
    'FG', (xfer.release_quantity1 * xfer.attribute10)
    ) matl_val
    In the above code matl_val is alias name i need to use that one in where clause as
    where matl_val > 0
    is this possible or anyother way can anyone help me.

    But the point is as you haven't read the documentation you may miss some valuable points about alias and will soon end with another problem.
    >
    Specify an alias for the column expression. Oracle Database will use this alias in the column heading of the result set. The AS keyword is optional. The alias effectively renames the select list item for the duration of the query. The alias can be used in the order_by_clause but not other clauses in the query.
    >
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_10002.htm#SQLRF01702

  • Preference for not using middle names from address book in emails

    I have quite a few contacts that I have their middle names in my address book. When I type their name in a new email, their full name is displayed in the "To" field. I don't want the middle name to show up in my outgoing emails. I also don't want to delete everyones middle name from my address book. Are there any preferences or plugins that allow this behavior?
    I also have some contacts that I have nicknames for...the most glaringly obvious being "Mom" and "Dad." I don't want to send an email to my parents with their name in the "To" field. Is there a plugin or a preference for this as well

    Greetings,
    Sorry, but there's no way to do what you want. The only way to avoid using a middle name in the To: field is for you to delete that from your contact, and from the Previous Recipients list in Mail. The same would be true for those contacts where you have a nickname.
    But ultimately, the name use by Mail and Address Book would be determined by the recipient when they send you an email; if they use their full name, that's what Address Book will change it to.

  • How to ask the I2C device alias name from the MAX

    Hi,
    How can I ask the I2C device alias name which MAX uses in Labview? If the VISA Alias on My System is for example I2C in MAX, I need to ask it in Labview and write it then to Device Reference In input of a I2C vi.
    BR,
    Jick
    Solved!
    Go to Solution.

    Here is a picture which should clarify the problem a bit more.
    As you can see I use "I2C2" as an alias in MAX and I need somehow query that alias in Labview and write it to the device reference in input node. How?
    BR,
    Jick
    Attachments:
    pic1.JPG ‏21 KB

  • How to use alias in "From" field when I send a mail with utl_smtp ?

    Hi all,
    I'm using a PL/SQL package with an Oracle 11G database to send mails. It works fine but instead of use of my mail in "From" field like "[email protected]" as sender E-mail address, I would like to have "Toto" in the sender address. I tryied to use utl_smtp.mail(l_connection, '<toto> [email protected]') but it doesn't work. The only way I can send mail is when I set utl_smtp.mail(l_connection, '<[email protected]>') directly. When I use the Alias, I have an error from smtp server telling that I use a bad syntax address.
    Does someone know how to use the alias ? Where do I do a mistake ?
    Thank you for your help.
    sis2b

    Thank you, I find how to solve the problem thanks to your link.
    I try to send HTML E-mail so I had the From in the from field writen in the header of the mail and not to initialize the connection.
    sis2b.

  • Can I use file names from some folder to specisfly a value of a variable

    so here is the thing I want to do:
    I've got like 3 variables in my swf file which value tells to
    the code how many picture there are to load.
    So I have like
    var totalPics:Number = 5
    in my folder images I have 5 pics, but I want to put 3 more
    so I want to make suck code that will check the total files in the
    folder and return a value of 8 or check the name of the last file
    found in the foulder like pic8.swf (I've made it into swf to load
    in a loader) and to take that letter 8 from it as a value to put in
    the variable totalPics so it is = 8.
    Can u tell me is this possible to make in flash.... where I
    should read helps or guides .. or just give me a simple example
    please.
    Thank u a lot. If u have any more questions, just ask me..

    Very helpful of you guys ;] Thanks a lot.. so lets continue
    on the matter..
    GWD the second option is good but can work in a simplier
    code.. mine is a bit complexed and by that I mean.. that the total
    number of pics or things to load should be known for the main swf
    file at his start. That is because before the turn for the pics to
    load comes, there is something else that must happen first, and it
    depends on that total number (actually 3 total numbers cuz there
    are 3 folders with different pics that must mix) So.. can't use the
    second option cuz it works good when the code is a bit more simple
    than that.
    If u didn't understand whant I tried to explain.. doesn't
    matter.. not so important atm.
    Now the thing with the LoadVars.. yes, I've been thinking the
    same thing but like this: At the 1st frame in the main timeline I
    have 3 variables that are used further in the code and that must be
    predefined by how many pics there actually are, so.. I've been
    thining to make 3 different var1.txt, var2.txt and var3.txt files
    for example and to put there as value just the number I need. So
    when I add more pics for example to my images folder, I edit the
    txt file containing their total number and just change it so the
    code can automatically add the new pics to the sequence.
    I've got some examples of this how LoadVars works with txt
    files and I think I can manage to do that, but anyway would be nice
    of you to give me some example ;] and of course correct me if my
    toughts above are not true.
    Now.. SumTsb.. what u mentioned, I am interested in, because
    I have a PHP guy, who can make me a code that automatically counts
    and gives back the totalPics number from a certain folder (I don't
    know for sure that it is possible but if it is he can do it). My
    point is.. When he makes this code.. that reterns value of
    totalPics, how can I redirect it so it changes the value of
    totalPics inside my main swf file. I see only this as option at the
    moment:
    1) when someone adds or deletes files from the folder the php
    code returns a different value, equal to the number of files in the
    folder, and automatically changes the content of the file var1.txt
    like this:
    First off var1.txt has: &content=10 // this is the total
    number of pics/swf files in the folder;
    when u add.. like 3 more files.. the php code changes the
    value inside of var1.txt to: &content=13 and when the main swf
    is started he takes the new value and my problem is solved. Is this
    what I say as example true ? If it is I guess the only thing left
    for me is the php programer to make his code and job is done.
    But answer me this question too: is it possible the php code
    to return the value of the totalPics directly into the main swf
    file. So if I have inside the main swf a variable at the first
    frame ot the main timeline called totalPics, can the php give it a
    value equal to the total numbers of files in a folder, and how ?
    I guess I've written too too much :D so I'll wait what u will
    answer me now.. I think you understood my idea.. and if more
    questions arise I will write u back. And if no.. I will just thank
    you a lot :D

  • When I log into iChat and change the name from "View as Handle" to "View as Name," the name is not my name. It is my brother's name and this is my mac. How do I change this?

    I don't know how this happened. I just started using iChat today and it showed my brother name when I logged into my own AIM account on my own MacBook Pro and I want to change it because it's not my name.

    Even if you put a credit or debit card on file with iTunes it will still use your balance FIRST.
    I would suggest putting a card on file and testing to see if it will allow you to make a purchase, then removing the card from the account after successful download of an item.
    EE

  • Using alias addresses from Account pull-down menu

    My main computer is in for repair and I started using my G4 for Mail. I have a Mobile Me/.Mac account and have several alias addresses. On my computer with Leopard, the From account pull down- menu has my alias accounts to choose to send from. This, the Tiger machine does not. Only has my primary Mobile me account to choose from. Is there a way to get my aliases to show in the pull-down. I was syncing the mail boxes for a while, but that didn't seem to do what I wanted.

    Is there a way to get my aliases to show in the pull-down?
    Go to Preferences > Accounts, select the account in question, and add the alias email addresses after the Email Address field for the account, separated by commas. Save the changes, then restart Mail.
    Mulder

  • Using table name from user_tab_columns in a select

    Hi all,
    I need to generate a list of tables that contain rows in a certain condition. For the real situation there are hundreds of tables so I've been trying to use all_tab_columns in the query to generate the list of tables to search and then delimit by condition.
    e.g.
    create table adam1
    adamname char(10)
    create table adam2
    adamname char(10)
    insert into adam1 values ('ADAM');
    insert into adam1 values ('BOB');
    insert into adam2 values ('BOB');
    ...I'd like to see a list of tables that contain 'ADAM' in column 'adamname' so in this instance I'd only see table adam1 in the results.
    I've tried using a cursor loop but it doesn't like me using table_name ... do I have to bring this into a variable or some such?
    Thanks!
    Adam

    Try this:
    CREATE OR REPLACE
    FUNCTION ADAM_TABLES( I_COLNAME IN VARCHAR2, I_VALUE IN VARCHAR2 )
    RETURN str_table PIPELINED
    IS
      CURSOR L_CUR IS
          SELECT c.OWNER, c.TABLE_NAME, c.DATA_TYPE
          FROM ALL_TAB_COLUMNS C
          JOIN ALL_OBJECTS O
          ON (C.OWNER = O.OWNER AND c.table_name = o.object_name )
          WHERE COLUMN_NAME = I_COLNAME AND DATA_TYPE LIKE '%CHAR%'
                AND o.object_type = 'TABLE';
      L_owner     ALL_TAB_COLUMNS.owner%TYPE;
      L_TABLENAME ALL_TAB_COLUMNS.TABLE_NAME%TYPE;
      L_DATATYPE  ALL_TAB_COLUMNS.DATA_TYPE%TYPE;
      L_RET NUMBER := 0;
      l_sql varchar2(32000);
      TABLE_NOT_EXISTS EXCEPTION ;
      PRAGMA EXCEPTION_INIT( TABLE_NOT_EXISTS, -00942 );
    BEGIN
      OPEN l_cur;
      LOOP
          FETCH L_CUR INTO l_owner, l_tablename, l_datatype;
          EXIT WHEN L_CUR%NOTFOUND;
          L_SQL :=  q'{SELECT 1 FROM DUAL
                       WHERE EXISTS (
                            SELECT 1 FROM }';
          L_SQL := L_SQL || l_owner || '.' || l_tablename || ' WHERE ';
          -- for CHAR, NCHAR etc. we must trim spaces from column
          -- before compare it with VARCHAR2 in WHERE condition
          IF l_datatype LIKE '%CHAR'
          THEN
              l_sql := l_sql || ' trim( ' || i_colname || ' ) ';
          ELSE
              l_sql := l_sql || i_colname ;
          END IF;
          l_sql := l_sql || ' = :val ) ';
          BEGIN
              EXECUTE IMMEDIATE l_sql INTO L_RET USING I_VALUE ;
              -- found data
              PIPE ROW ( l_owner || '.' || l_tablename );
          EXCEPTION
             WHEN NO_DATA_FOUND THEN
                  NULL;
             WHEN  TABLE_NOT_EXISTS THEN
                 RAISE_APPLICATION_ERROR( -20100, 'Table ' || l_owner ||'.' || l_tablename ||
                          ' does not exist or you have not SELECT privilege on this table.' );
          END;
      END LOOP;
      CLOSE L_CUR;
      RETURN;
    EXCEPTION
      WHEN OTHERS THEN
          IF L_CUR%ISOPEN THEN
             CLOSE L_CUR;
          END IF;
          RAISE;
    END;
    select * from table ( adam_tables( 'ADAMNAME',  'ADAM' ) );
    COLUMN_VALUE                  
    TEST.ADAM1  
    select * from table ( adam_tables( 'FIRST_NAME',  'Donald' ) );
    COLUMN_VALUE                  
    HR.EMPLOYEES                  
    HR.EMPLOYEES2  

  • Can we use alias name in the case statement?

    select sal,
    case sal
    when 500 then 'low'
    when 5000 then 'high'
    else 'medium'
    end case
    from emp;
    OUTPUT
    sal    case
    4587 medium
    5000 high
    .....so  can i have range in the place of  case  at output?

    select nvl(sal,0) sal, case when nvl(sal,0)<=500 then 'low' when nvl(sal,0)>=5000 then 'high' else 'medium' end range from emp;
    Output
    SAL RANGE
    450 low
    5000 high
    300 low
    4000 medium
    3700 medium
    4750 medium
    2000 medium

  • Forcing created by field to use alias name

    Hi,
    How can I modify User Profile Service in SharePoint 2007, so that "Created by" field uses "domain\user" as opposed to fullname in the created by field or any hidden person field like "modified by".
    Thanks

    Hi,
    Per my understanding, you might want to set default value for the “Business Unit” column by looking up to another list.
    You can apply
    JavaScript with Client Object Model to the NewForm.aspx page to meet your requirement.
    A possible solution can be like this: When user opens the NewForm.aspx page of the current list, the custom JavaScript will be executed to get information about the
    current user, then query the other list for the default value, set the value to the drop down list of the “Business Unit” column dynamically. The JavaScript can be added into a Content Editor Web Part and insert into the NewForm.aspx page.
    The links below would be helpful for implementing this scenario:
    About how to
    select an option of drop down list using JavaScript:
    http://www.imranulhoque.com/javascript/javascript-beginners-select-a-dropdown-option-by-value/
    About
    how to use JavaScript Client Object model to access SharePoint list:
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx  
    Common Programming Tasks in the JavaScript Object Model
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    Here are two links about how to
    add code into SharePoint page via Content Editor Web Part:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
    http://sharepointadam.com/2010/08/31/insert-javascript-into-a-content-editor-web-part-cewp/
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • Hdmi to component or s video converter

    what is a good converter box to convert and hdmi signal to a component or s video signal?

  • Error Loading Transactional Data into Cube(0PCA_C01)

    Hi Guys,     I am trying to Install the following cubes from Business Content. 0PCA_C01 / 0PCA_C02 (Profit Center Analysis). Everything got replicated. I am trying to load transaction data now. I created Infopackage and loaded the data. Its running f

  • Keeping zoom levels

    I've had two different graphic designers create pdf files for me. One opens to the correct zoom level and the other does not, no matter what I set the zoom level to in Adobe Reader. Is there a setting when creating the pdf to keep the zoom level cons

  • How to install and learn BODS ?

    Hi All, I want to install and learn Business Object Data Services, can any one point me where can I get software (Trail) and documentation to install and few start up scenarios. Also can any one point me to BODS capabiliteis and its release.. I am co

  • Cross Validation in Segmentation System of SAP B1

    Hi Everyone, I want to know that in segmentation accounting system I have set up a compnay with segmentation accounting system and segment wise g/l accounts are made. Now there are two Branches like Branch A and Branch B and each branch has segmented