How can I create an empty row on a #TempTable based on an input parameter

So if my Line of Business is 'MC' or 'MG', I have to go over to Oracle and get its data accordingly. Then, when I create my final report result set, I think I'll want to UNION in that result set if my Parameter is 'MC' or 'MG'. I don't think I can UNION
based on the value of the Parameter. So my thought process was to create an empty row on my #TempTable so when I UNION and my parameter is NOT 'MC' or 'MG' then it will have nothing to UNION in. My struggle is how do I create an empty row in my #TempTable
if my parameter is NOT 'MC' or 'MG'
If I am wwwaaayyy off here, please tell me so.
This is my #TempTable Creation SQL...
IF EXISTS
(SELECT 1
FROM [#TempTable_LineOfBusiness_Parameter]
WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
BEGIN
SELECT *
INTO [#TempTable_Market_Prominence_Member_Data]
FROM OPENQUERY
(RPDMHF,
'SELECT HCFA_NAME_ORG.NAME_ID,
HCFA_NAME_ORG.MEMBER_ID,
HCFA_NAME_ORG.HIC_NUMBER,
MEMBER.NAME_FIRST,
MEMBER.NAME_LAST,
HCFA_DATE.START_DATE,
HCFA_DATE.END_DATE,
HCFA_NAME_ORG.COUNTY_CODE,
HCFA_NAME_ORG.PART_A_PAYMENT,
HCFA_NAME_ORG.PART_B_PAYMENT,
HCFA_NAME_ORG.STATUS,
HCFA_NAME_ORG.ORG_ID,
HCFA_NAME_ORG.PLAN,
HCFA_NAME_ORG.ENROLL_DATE,
HCFA_NAME_ORG.PBP_ID,
HCFA_DATE.VALUE
FROM SC_BASE.HCFA_DATE
LEFT JOIN SC_BASE.HCFA_NAME_ORG
ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
LEFT JOIN AMIOWN.MEMBER
ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
WHERE HCFA_DATE.INDICATOR = ''plan''
AND HCFA_DATE.START_DATE >= ''2015-01-01''
END
If I add an ELSE, it always comes back and tells me the #TempTable_Market_Prominence_Member_Data already exists. As if it's creating it regardless of the Top IF.
Thanks for your review and am hopeful for a reply.

Hi ITBobbyP,
The error came back from your ELSE Statement most probably caused by the reason mentioned in Hoffmann's post.
Regarding your requirement, I would suggest you CREATE the [#TempTable_Market_Prominence_Member_Data] explicitly.
CREATE TABLE [#TempTable_Market_Prominence_Member_Data]
NAME_ID INT,
MEMBER_ID INT,
HIC_NUMBER VARCHAR(99),
NAME_FIRST VARCHAR(99),
NAME_LAST VARCHAR(99),
START_DATE DATE,
END_DATE DATE,
COUNTY_CODE VARCHAR(99),
PART_A_PAYMENT MONEY,
PART_B_PAYMENT MONEY,
STATUS VARCHAR(99),
ORG_ID INT,
PALN VARCHAR(99),
ENROLL_DATE VARCHAR(99),
PBP_ID INT,
VALUE INT
IF EXISTS
(SELECT 1
FROM [#TempTable_LineOfBusiness_Parameter]
WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
BEGIN
INSERT INTO [#TempTable_Market_Prominence_Member_Data]
SELECT *
FROM OPENQUERY
(RPDMHF,
'SELECT HCFA_NAME_ORG.NAME_ID,
HCFA_NAME_ORG.MEMBER_ID,
HCFA_NAME_ORG.HIC_NUMBER,
MEMBER.NAME_FIRST,
MEMBER.NAME_LAST,
HCFA_DATE.START_DATE,
HCFA_DATE.END_DATE,
HCFA_NAME_ORG.COUNTY_CODE,
HCFA_NAME_ORG.PART_A_PAYMENT,
HCFA_NAME_ORG.PART_B_PAYMENT,
HCFA_NAME_ORG.STATUS,
HCFA_NAME_ORG.ORG_ID,
HCFA_NAME_ORG.PLAN,
HCFA_NAME_ORG.ENROLL_DATE,
HCFA_NAME_ORG.PBP_ID,
HCFA_DATE.VALUE
FROM SC_BASE.HCFA_DATE
LEFT JOIN SC_BASE.HCFA_NAME_ORG
ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
LEFT JOIN AMIOWN.MEMBER
ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
WHERE HCFA_DATE.INDICATOR = ''plan''
AND HCFA_DATE.START_DATE >= ''2015-01-01''
END
Explicitly creating the temp table will offer below benefit in this case.
The ELSE statement is no longer needed, if the no rows get inserted into that table, it has nothing to union an empty table.
With the column datatype defined, you can avoid such conversion error
SELECT NULL AS COL1,NULL AS COL2 INTO #T
SELECT COL1,COL2 FROM #T
UNION
SELECT 1,'ABC'--Conversion failed when converting the varchar value 'ABC' to data type int.
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support

Similar Messages

  • How can I leave an empty row?

    Hi,
    If I want to use GridBagLayout, how can I leave an empty row? Or empty column? When I create the buttons on a frame, are they created sequentially? so Is that mean I can't put something back to the first row later in the program? Thx.
    Adrian

    I'm just guessing, since I havent done Java for a long time... but if you want an empty row... what pops up in my mind first is like putting in an empty JLabel/Label... for that row... but then if you wanna fill it in... i dunno...

  • How can I create a shared review using a web-based mail account?

    I believe I should be able to do this using Acrobat 11 for Windows XP (I have the trial version), but I can't figure out how. We use Google Mail. Help says to:
    (Windows) Double-click Internet Options in the Control Panel. In the Internet Properties dialog box, select the Programs tab, and then select the preferred email application. Restart Acrobat to activate the change. 
    (Windows) Change the MAPI settings in your email application. Acrobat and Reader use the Messaging Application Program Interface (MAPI) to communicate with your email application. Most email applications come with MAPI settings to handle this communication. For more information on configuring your email applications, see the email application’s Help.
    Google Mail doesn't show up in my Internet Properties/Programs/E-mail list, and as far as I can tell, Google Mail doesn't have any MAPI settings to adjust.
    Any tips?
    Thanks.

    In Acrobat XI you can find this setting under Edit > Preferences > Email accounts. You can add your gmail account here. Here is a tutorial on How to use webmail in Acrobat.

  • How to Insert & Return a Row using a Function based on the Input parameter

    Hi Guys, Plz help me the following code i am converting from Sql Server to Oracle.
    I want equivalent code in Oracle.
    ALTER FUNCTION [dbo].[GetDateRange]
         @Period     VARCHAR(50)
    RETURNS @DateRange TABLE(StartDate     DATETIME,EndDate DATETIME,[Name] NVARCHAR(500), [Description] Nvarchar(2000) )
    AS
    IF(LTRIM(RTRIM(@Period)) = 'LQ')
    BEGIN
    ''''CALCULATION
              INSERT INTO @DateRange
                             StartDate,
                             EndDate,
    [Name],
    [description]
                   SELECT     @StartDate,@EndDate,'Last Quarter',
    'Last Quarter - '+ Cast(@StartDate as Nvarchar(11))+ ' to '+Cast(@EndDate as Nvarchar(11))
    END
         RETURN
    END
    above Function i am using in another Procedure
    select ----
    FROM     dbo.SalesFact SF ,
                   dbo.DateDimension DD,                    
                   dbo.GetDateRange('LY') GDR
         WHERE     DD.DateKeyID = SF.BillDateKeyID AND
                   DD.Date >= GDR.StartDate AND
                   DD.Date < GDR.EndDate
    Edited by: 801668 on Oct 11, 2010 10:26 PM

    hi i'm sending again the following code
    ALTER FUNCTION [dbo].[GetDateRange]
         @Period     VARCHAR(50)
    RETURNS @DateRange TABLE
    (StartDate     DATETIME,     EndDate     DATETIME,[Name] NVARCHAR(500), [Description] Nvarchar(2000) )
    AS
    BEGIN
    DECLARE @ToDay          DATETIME,
    @StartDate     DATETIME,
    @EndDate     DATETIME
    DECLARE
    @V_Getdate DATETIME
    ,@V_Getdate_2 DATETIME
    ,@V_dateA datetime
    ,@V_dateB datetime
    ,@V_dateC datetime
    ,@V_dateD Datetime
    ,@StartFirstdayofquarter datetime
    ,@EndLastdayofthequarter datetime
    ,@quater int
    ,@FirstdayofPreviousyr Datetime
    ,@LastdayofPreviousyr Datetime
    ,@FirstdayofPreviousyr6MTD Datetime
    ,@TodayDayOfWeek INT
    ,@EndOfPrevWeek DateTime
    ,@StartOfPrevWeek DateTime
    ,@V_Date_1 datetime
    ,@V_P6MV1 datetime
    ,@V_P6MV2 Datetime
    ,@StartFirstdayofquarter_1 datetime
    ,@EndLastdayofthequarter_1 datetime
    ,@i int
    ,@CurrentRowNum int
    ,@CurrentQuarter int
    ,@V_Startdate datetime
    ,@V_Startdate2 datetime
    ,@V_enddate datetime
    ,@V_Quarter int
    ,@V_rownum int
    SET @Period=LTRIM(RTRIM(@Period))
    SET @V_Getdate = (SELECT CONVERT(DATETIME,(SELECT CONVERT(VARCHAR(10),(Select LastETLDate from Parameterconfig),101))))
    --Where parameterconfig is a table
    SET @V_Getdate_2=@V_Getdate
         IF(LTRIM(RTRIM(@Period)) = 'LQ')
         BEGIN
    SET @ToDay = (SELECT CONVERT(DATETIME,CONVERT(VARCHAR(10),@V_Getdate,101) + ' 00:00:00.000'))--#Ch003
    --If Today is in between 1st January to 31st March then return
    --1st Oct of previous year as StartDate and 1st Jan of present year as EndDate
    IF((DATEPART(MM,@ToDay) = 1) OR (DATEPART(MM,@ToDay) = 2) OR (DATEPART(MM,@ToDay) = 3 ))
    BEGIN
    SET @StartDate = (SELECTCONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,DATEADD(YYYY,-1,@ToDay))) +'-10-01 00:00:00.000'))
    SET @EndDate = (SELECTCONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-01-01 00:00:00.000'))
         INSERT INTO @DateRange(StartDate,EndDate,[Name],[description]     )
         SELECT     @StartDate,@EndDate,'Last Quarter',
    'Last Quarter - '+ Cast(@StartDate as Nvarchar(11))+ ' to '+Cast(@EndDate as Nvarchar(11))
    END
         --If Today is in between 1st April to 30th June then return
         --1st Jan of present year as StartDate and 1st April of present year as EndDate
    IF((DATEPART(MM,@ToDay) = 4) OR (DATEPART(MM,@ToDay) = 5) OR (DATEPART(MM,@ToDay) = 6 ))
    BEGIN
    SET @StartDate = (SELECT     CONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-01-01 00:00:00.000'))
    SET @EndDate = (SELECT     CONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-04-01 00:00:00.000'))
         INSERT INTO @DateRange(StartDate,EndDate,[Name],[description]     )
    SELECT     @StartDate,@EndDate,'Last Quarter ',
    'Last Quarter - '+ Cast(@StartDate as Nvarchar(11))+' to '+Cast(@EndDate as Nvarchar(11))
    END
    --If Today is in between 1st July to 30th September then return
    --1st April of present year as StartDate and 1st July of present year as EndDate
    IF((DATEPART(MM,@ToDay) = 7) OR (DATEPART(MM,@ToDay) = 8) OR (DATEPART(MM,@ToDay) = 9 ))
    BEGIN
    SET @StartDate = (SELECT     CONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-04-01 00:00:00.000'))
    SET @EndDate = (SELECT     CONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-07-01 00:00:00.000'))
    INSERT INTO @DateRange(StartDate,EndDate,[Name],[description])
    SELECT     @StartDate,@EndDate,'Last Quarter',
    'Last Quarter - '+ Cast(@StartDate as Nvarchar(11))+' to '+Cast(@EndDate as Nvarchar(11))
    END
              --If Today is in between 1st Oct to 31St Dec then return
              --1st July of present year as StartDate and 1st Oct of present year as EndDate
    IF((DATEPART(MM,@ToDay) = 10 ) OR (DATEPART(MM,@ToDay) = 11) OR (DATEPART(MM,@ToDay) = 12 ))
    BEGIN
    SET @StartDate = (SELECT     CONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-07-01 00:00:00.000'))
    SET @EndDate = (SELECT     CONVERT(DATETIME,CONVERT(VARCHAR(4),DATEPART(YYYY,@ToDay)) +
              '-10-01 00:00:00.000'))
    INSERT INTO @DateRange(StartDate,EndDate,[Name],[description])
    SELECT     @StartDate,@EndDate,'Last Quarter',
    'Last Quarter - '+ Cast(@StartDate as Nvarchar(11))+' to '+Cast(@EndDate as Nvarchar(11))
    END
    END
    RETURN
    END
    above function i'm using in another procedure. which acts as a virtual table. for joining purpose.

  • How can I create multiple selection check boxes in a report row?

    Hello,
    I'd like to know how a multiple selection checkbox can be created in report rows. In brief, I need to create a questionnaire template and each one of the questions will have multple options checkboxes, that means that the user can select more than one of the answers.
    Should I use apex_item.checkbox ?. I have no clue here.
    Please advice.
    Thank you
    Edited by: user9982480 on Jul 23, 2012 10:58 AM

    Hi,
    This might save your effort
    http://www.apexsolution.de/questionnaire/
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How can i create datasource on apache server for ADF application?

    Hi All,
    i my use case i have created simple adf application using ADF BC and want to deploy on Apache server 6.x.
    So my question is that  how can i create Data Source i have goggling and find  two different way to do this.
    1. write following line of code on apache server conf/Context.xml file.
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource"
                   driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"/>
    but when i have used this way i got following exception.
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    check link-
    https://forums.oracle.com/thread/2564233
    2. write following line of code apache conf/Server.xml file
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/TestDB" auth="Container"
                  type="oracle.jdbc.pool.OracleDataSource"
                  description="User database that can be updated and saved"
                  driverClassName="oracle.jdbc.driver.OracleDriver"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@//172.31.43.207:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"   />
      </GlobalNamingResources>
    and add this line in context.xml file inside <context> tag
    <ResourceLink global="jdbc/TestDB" name="jdbc/TestDB" type="oracle.jdbc.pool.OracleDataSource"/>
    but when i have run application i have got following error
    log-
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Aug 2, 2013 5:17:21 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    so what is the solution how to create datasource on apche server which suitable for adf application?
    when i test data source using  following code used 1. way as i mentioned above  its running fine bt not for second.
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/TestDB">
    select empname from pay_emphdr where empcd='JK1306'
    </sql:query>
    <html>
      <head>
        <title>DB Test</title>
      </head>
      <body>
      <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
        Foo ${row.empname}<br/>
    </c:forEach>
      </body>
    </html>
    please help me. it is very urgent.
    thanks in Advance
    Manish

    Hi Lindalnci
    i have already tried  this tutorial and in my post i have defined first way to do using this procedure.
    in that case i have got following exception as i have mentioned above
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How can I create a object for a note?

    Hi experts,
        I need to apply the note 501905 but when I try in the SNOTE transacction I receive this error:
    Object REPS Z_MRM_DELETE_PP does not exist; create it
    Diagnosis
    The SAP Note that you want to implement contains changes to an object that does not yet exist in your system.
    SAP Notes contain only changes to objects that already exist. This means that the the system cannot automatically create new objects during the implementation of this SAP Note.
    Procedure
    1. Cancel the SAP Note implementationl.
    2. Create an empty object REPS Z_MRM_DELETE_PP with the corresponding object editor.
    3. Restart the SAP Note implementation.
    How can I create that Object??
    Thanks for the help!

    Hi Carlos,
    It says that you have to create a new program with a name Z_MRM_DELETE_PP.
    Once you create and activate the program you can execute the SAP Note.
    All this processure will be written in the SAP Note.
    Please Go through the Note using below:
    Step1: Use T.code SNOTE.
    Step2: Use menu GOTO --> NOTE BROWSER. Provide the Note no and EXECUTE.
    Step3: Double click on the displayed line.
    Here you will get the information to do before implementing the note.
    Go through all the documentation, and once you did all the development given in the note then you can implement the note.
    Regards,
    Sreekanth.

  • How to create a new row for a VO based on values from another VO?

    Hi, experts.
    in jdev 11.1.2.3,
    How to create a new row for VO1 based on values from another VO2 in the same page?
    and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
    Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
    How-to declaratively create new table rows based on existing row content (20-NOV-2008)
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    I have tried:
    1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
    2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
    3.add: Create insertinside Createwithparams->Nameddata(amount),
    4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
    On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
    java.lang.NumberFormatException: For input string: "Amount"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    Can anyone give some suggestions?
    Thanks in advance.
    bao
    Edited by: user6715237 on 2013-4-19 下午9:29

    Hi,CM,
    I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
    My principal requirement is as follows:
    1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
    --so it's better to implement it in UI rather than in EO.
    2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
    --little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
    In order to get full information for the requirements of my use case, can take a check at:
    How to set default value for a VO query bind variable in a jspx page?
    (the end half of the thread: I have a more realworld requirement similar to the above requirement is:
    Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
    Regards
    bao
    Edited by: user6715237 on 2013-4-19 下午11:18
    JAVE->JAVA

  • How can we pass the entire rows of a table to a web service in a VC model ?

    Hi,
    On the click of the submit button, I have to pass the rows of two tables into an enterprise service. This service also takes other fields of a form as an input.
    How can we pass the entire rows of a table into a service ?
    Regards,
    Nitin

    Hi Nitin,
    It seems that you have two or three different structures to pass data using your webservice. In your main question, two tables, you can join both in one table and from there call the webservice. In order to pass the entire table you need:
    1. Draw a line between your joinned table and your service,
    2. Map the fields,
    3. Create a 'SUBMIT' in your table tool bar. Right click on your table and choose 'Create Toobar', '+', name and choose 'Submit' as your event.
    4. Go to Configure Element (Table View) 'Multiple' at Selection Mode.
    Reward points if helps you to solve your question.
    Regards,
    Gilson Teixeira

  • I can't create a empty project in Sun Java Studio Enterprise 8.1

    Hello, i have a problem, i can't create a empty projects because the option is not in wizard, i only have a option "Web Application with Existing Ant Project"
    Why? What can i do?
    I only have one template!!! In other PC work OK with all templates.
    I reinstall, uninstall, install, all!!!
    Regards.
    Edited by: Crainar on Feb 25, 2008 1:26 PM

    I am having same trouble. Installed JDK 5.0 Update 5. Installed the Studio. Ctrl+Shift+N, the only option I have is Web Application with Existing Ant Script.. Please advise how to solve this problem. thx

  • How can I create schema?

    Hi all.
    I've used oracle 9i 9.2.0.3 database.
    I want to create schema using oemapp console. But I can't.
    I've thought that a schema might be created when user's created. But when I created a user, a releated schema was not created.
    How can I create schema which has a user name?

    I've thought that a schema might be created when
    user's created. But when I created a user, a releated
    schema was not created.
    How can I create schema which has a user name? From the Oracle® Database Concepts manual:
    "A schema is a collection of logical structures of data, or schema objects. A schema is owned by a database user and has the same name as that user. Each user owns a single schema."
    So, in a way, you can consider both concepts as being identical, i.e. when you create a user, you automatically create the corresponding (empty) schema. The schema can then be enhanced by creating additional objects under the authority of the user who owns it.

  • How Can I create a database?

    How can I create a database to store registered members info
    (member id, password and other information?) I have the scripts for
    member login, member signup, etc.. I understand that I will have to
    deploy the database, once it is created, in the same folder where I
    have all other scripts (PHP.)
    Thank you, in advance.

    Hey,
    basically you should start with an empty SharePoint 2010 project where you add an List-EventReceiver. This Receiver should point to the url of the list and handle the ItemAdded-Event. In this method you place the code to create the database, for example
    with a SQL-Statement.

  • How can I make the current row in a different color  in  ADF Table 10.1.3

    Hi all
    in JDeveloper 10.1.3 ADF Table ,
    How can I make the current row in a different color ?
    thanks

    And what exactly would "the component" be?
    I tried the af:outputText, but it just creates a <span> around the value of the cell, and if I try the af:column it just won't use it at all!
    Any suggestions?

  • How can I creat 4 columns?

    How can I creat 4 columns? I want a check box, text field for details, and a second column of each.

    You can create fields side by side by clicking the "+" sign on the right edge of a field (when it is selected), you can certainly add the fields you describe all in a row.  FormsCentral doesn't have the concept of columns, but you can lay it out so you have those fields in a column type layout.
    You might want to adjust the label position for the fields to get the layout you desire, you can define the label position per field in the Properties panel for the field.
    Note that you can also drag/drop fields into position.  Click/drag on the far left edge of a field to drag, a blue insertion marker will show you where it will be dropped when you let go.
    Thanks,
    Josh

Maybe you are looking for