LiveCycle DS , can't get the return value of fill( arg) from Assembler class

Hi all!
I'm a have small problem , can any one help me? Please
I make a project which very similar to Product project(in
example).
1) Have Assembler class: I work correctly
package flex.samples.stock;
import java.util.List;
import java.util.Collection;
import java.util.Map;
import flex.data.DataSyncException;
import flex.data.assemblers.AbstractAssembler;
public class StockAssembler extends AbstractAssembler {
public Collection fill(List fillArgs) {
StockService service = new StockService();
System.out.print(fillArgs.size());
return service.getStocks();
public Object getItem(Map identity) {
StockService service = new StockService();
return service.getStock(((Integer)
identity.get("StockId")).intValue());
public void createItem(Object item) {
StockService service = new StockService();
service.create((Stock) item);
public void updateItem(Object newVersion, Object
prevVersion, List changes) {
StockService service = new StockService();
boolean success = service.update((Stock) newVersion);
if (!success) {
int stockId = ((Stock) newVersion).getStockId();
throw new DataSyncException(service.getStock(stockId),
changes);
public void deleteItem(Object item) {
StockService service = new StockService();
boolean success = service.delete((Stock) item);
if (!success) {
int stockId = ((Stock) item).getStockId();
throw new DataSyncException(service.getStock(stockId),
null);
some require class is ok.
2) I configure in data-management-config.xml
<destination id="stockinventory">
<adapter ref="java-dao" />
<properties>
<source>flex.samples.stock.StockAssembler</source>
<scope>application</scope>
<metadata>
<identity property="StockId"/>
</metadata>
<network>
<session-timeout>20</session-timeout>
<paging enabled="false" pageSize="10" />
<throttle-inbound policy="ERROR" max-frequency="500"/>
<throttle-outbound policy="REPLACE"
max-frequency="500"/>
</network>
</properties>
</destination>
3) My client app:
I use :
<mx:ArrayCollection id="stocks"/>
<mx:DataService id="ds" destination="stockinventory"/>
ds.fill(stocks); --> Problem here
When I run this app, The StockAssembler on the server work
correctly (i use printout to debug) . But variable stocks can't get
the return value,it is a empty list.
Please help me!

Hi,                                                             
The executeQueryAsync method is “asynchronous, which means that the code will continue to be executed without waiting for the server to
respond”.
From the error message “The collection has not been initialized”, which suggests that the object in use hadn’t been initialized after the execution of the executeQueryAsync method.
I suggest you debug the code in browser to see which line of code will throw this error, then you can reorganize the logic of the code to avoid using the uninitialized object.
A documentation from MSDN about Using the F12 Developer Tools to Debug JavaScript Errors
for your reference:
http://msdn.microsoft.com/en-us/library/ie/gg699336(v=vs.85).aspx
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • How to return 2 value to a method and how can i get the return value?

    hi guys, this is my problem.
    private void one(){
    two();
    private Vector, Vector two(){
    return(row, column);
    the problem is that I don't know how to call the two() method and return from two() to one().
    please help me, i'm very new to programming........
    liml

    the problem is that I don't know how to call the two()
    method and return from two() to one()You can doprivate Vector[] two () {
        return new Vector[] {
            row,
            column
    } // as suggested
    private void one () {
        Vector[] rowAndColumn = two ();
        Vector row = rowAndColumn[0];
        Vector column = rowAndColumn[1];
    }You should consider replacing your Vector with an ArrayList, btw.
    Kind regards,
      Levi

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • Not getting the return value of a program though it has no  errors

    public static String giroReturnFileDate(String strType)throws IOException{
              try{
                   SimpleDateFormat getFormatDate = new SimpleDateFormat("yyMM");
                   Date date = new Date();
                   String str = getFormatDate.format(date);
                   System.out.println("Current Date is : "+ str);
                   System.out.println("Fetching the Giro file now");
                   if(strType.equalsIgnoreCase("WPD") || strType.equalsIgnoreCase("ISTD")) {
                   FileReader inputFileReader = new FileReader("giro2itcs_"+strType+".txt");
                   ArrayList list = new ArrayList();
                   ArrayList list1 = new ArrayList();
                   System.out.println("Reading the file");
                   BufferedReader inputStream = new BufferedReader(inputFileReader);
                   String inLine = null;
                   String str1 = null;
                   while((inLine = inputStream.readLine()) != null && inLine.length() < 2)
                        list.add(inLine);
                   System.out.println("Control Record for giro2itcs_"+strType+"is:"+ inLine);
                   inputFileReader.close();
                   inputStream.close();
                   for (int i=0; i<inLine.length(); i++ )
                        str1 = inLine.substring(19,23);
                   System.out.println("date of the transaction is:"+str1);
                   if (str .equals(str1)){
                        System.out.println("giro2itcs_"+strType+".txt file is created today");
                        return "true";
                   else{
                        System.out.println("giro2itcs_"+strType+".txt file is not created today");
                        return "false";
                   }// end of if
                   return "test";
              }// end of try
              catch(Exception e) {
              System.out.println("The Exception is ::::::::::::::"+e);
    return "one";
    }//end of giroReturnFileDate(...) method
    }//end of of the class
    main method is seperate. this program compiles fine but am not getting the return value for this. none of the return values. plzzz help me.

    can you send me the code complete one ...
    i will debug and solve the problem
    [email protected]
    By publishing your email address you are likely to get loads of spam.

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How can I get the edited value from the editor in JTable

    I have a JTextField added as an editor to a cell in JTable.
    I value gets changed when I press enter.
    but in actionPerformed of the JTextField when I say
    String txtEditorValue = txtEditor.getText();
    I am getting the old value. How can I get the edited value? Thanks.

    Hi,
    I guess, your understanding of how JTable works together with its models is not good enough - for example the method getTableCellEditorComponent(...) of the TableCellEditor interface is used to get the component, that should be used as editing component - its second parameter is a value that should be used to setup the editing component - it is normally not the editing component itself.
    JTable uses an underlying TableModel to store the cell values - if you have edited a cell, JTable gets the value of the editing component by itself and stores it in the TableModel using its setValueAt(...) method. To retrieve this data you only need to query the TableModel using row and column of this cell as parameters
    say jt is your JTable, and row and column are the row and column of the cell - so to get the value, simply use
    Object obj = jt.getModel().getValueAt(row,column);
    if you know, that there is a String in this cell use
    String str = (String) jt.getModel().getValueAt(row,column);
    The editor component is used for the view of the JTable - you only want the data, which is stored in the model - you don't have to deal with the GUI components in this case.
    greetings Marsian

  • How can I get the default value of a particular preference programatically. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=702631&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I get the default value of a particular preference in FireFox?.
    I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.
    I see some that there are values for preferences in firefox.cs but I am not certain that these are being used as the default values for preferences. prefs.js in user's profile only has the updated values and not the default values.
    Any help towards acheiving this programtically is greatly appreciated.
    If the default values are stored in a file, kindly let me know the format in which it is stored for me to parse it programatically.
    == User Agent
    ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Dear Friend,
    Here when you have the callableSattement as ?=proc(?), the first ? is an output parameter. So you should register it as out parameter using registeroutparameter.
    Then you can get the value from the outparameter using callablestatement.getXXX().
    Try that way.
    For free tral versions of JDBC Drivers go to www.Atinav.com

  • How can i get the parent value by sum of the child value of billing of material by using with cte

    I want to sum every parent recursively to the top of parent for example
    So far i got all relation between parent and child
    but I can t get the sum value of all parent in every levels ,
    This is what i get so far 
     WITH EmpCTE( MS_ID ,  MMS_ID , Qty , FLG , lvl)
                        AS
                        SELECT        Child_Code, Parent_Code , Cast(1 as float) ,  GSS_HR_COSTRELATION.FLG  , 0 AS lvl
                        FROM            GSS_HR_COSTRELATION
                        WHERE Child_Code  =  '01'
                        UNION ALL
                        SELECT        Child_Code, Parent_Code , Cast(1 as float) , E.FLG  , M.lvl + 1
                        FROM            GSS_HR_COSTRELATION AS E
                        JOIN EmpCTE AS M  ON E.Parent_Code = M.MS_ID WHERE  E.FLG is null
                        SELECT  A.Cost_ID , MS_ID  , A.Cost_CODE , A.Cost_name ,  MMS_ID , FLG , ISNULL(A.TOTAL , 0) As Cost , Cast(A.month AS nvarchar) As month , lvl From EmpCTE  LEFT join
                        SELECT  Cost_ID , Cost_CODE , Cost_Name ,  Sum(QTY*PRICE) AS TOTAL ,month(DateCreated) AS month
                        FROM            GSS_HR_COSTCENTER LEFT JOIN
                        GSS_AC_WTHDRAW ON GSS_HR_COSTCENTER.Cost_ID = GSS_AC_WTHDRAW.line_id
                        GROUP BY Cost_ID , Cost_Name , Cost_CODE ,month(DateCreated) ) A ON A.Cost_code = EmpCTE.MS_ID Order by lvl , A.Cost_CODE
    Thanks
    I am using Sql server 2012 
    this is my script of my database (include data)
    USE [SMEDB]
    GO
    /****** Object:  Table [dbo].[GSS_AC_WTHDRAW]    Script Date: 11/23/2014 3:31:31 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[GSS_AC_WTHDRAW](
    [MATID] [int] IDENTITY(1,1) NOT NULL,
    [MATNO] [nvarchar](50) NULL,
    [STPRICE_ID] [int] NULL,
    [MS_CD] [nvarchar](50) NULL,
    [QTY] [decimal](16, 2) NULL,
    [PRICE] [float] NULL,
    [DateCreated] [datetime] NULL,
    [Name] [nvarchar](50) NULL,
    [DeptID] [int] NULL,
    [CreatedID_by] [int] NULL,
    [JvHeader_ID] [int] NULL,
    [line_id] [int] NULL,
    [createby] [nvarchar](50) NULL,
     CONSTRAINT [PK_GSS_AC_WTHDRAW] PRIMARY KEY CLUSTERED 
    [MATID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[GSS_HR_COSTCENTER]    Script Date: 11/23/2014 3:31:31 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[GSS_HR_COSTCENTER](
    [Cost_ID] [int] IDENTITY(1,1) NOT NULL,
    [Cost_code] [nvarchar](50) NOT NULL,
    [Cost_name] [nvarchar](50) NULL,
    [Dept_ID] [int] NULL,
    [DeptGroup_ID] [int] NULL,
     CONSTRAINT [PK_GSS_HR_COSTCENTER] PRIMARY KEY CLUSTERED 
    [Cost_code] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[GSS_HR_COSTRELATION]    Script Date: 11/23/2014 3:31:31 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[GSS_HR_COSTRELATION](
    [Relation_ID] [int] IDENTITY(1,1) NOT NULL,
    [Child_Code] [nvarchar](50) NULL,
    [Parent_Code] [nvarchar](50) NULL,
    [FLG] [int] NULL
    ) ON [PRIMARY]
    GO
    SET IDENTITY_INSERT [dbo].[GSS_AC_WTHDRAW] ON 
    INSERT [dbo].[GSS_AC_WTHDRAW] ([MATID], [MATNO], [STPRICE_ID], [MS_CD], [QTY], [PRICE], [DateCreated], [Name], [DeptID], [CreatedID_by], [JvHeader_ID], [line_id], [createby]) VALUES (1002, N'1411-0130', 1385, N'9101101', CAST(200.00 AS Decimal(16, 2)), 18,
    CAST(0x0000A3DB00000000 AS DateTime), N'0', 13, NULL, NULL, 49, NULL)
    INSERT [dbo].[GSS_AC_WTHDRAW] ([MATID], [MATNO], [STPRICE_ID], [MS_CD], [QTY], [PRICE], [DateCreated], [Name], [DeptID], [CreatedID_by], [JvHeader_ID], [line_id], [createby]) VALUES (1003, N'1411-0130', 1466, N'910201', CAST(50.00 AS Decimal(16, 2)), 18, CAST(0x0000A3DB00000000
    AS DateTime), N'0', 13, NULL, NULL, 49, NULL)
    INSERT [dbo].[GSS_AC_WTHDRAW] ([MATID], [MATNO], [STPRICE_ID], [MS_CD], [QTY], [PRICE], [DateCreated], [Name], [DeptID], [CreatedID_by], [JvHeader_ID], [line_id], [createby]) VALUES (1004, N'1411-0131', 1456, N'914201', CAST(150.00 AS Decimal(16, 2)), 27.25,
    CAST(0x0000A3DB00000000 AS DateTime), N'0', 13, NULL, NULL, 58, NULL)
    INSERT [dbo].[GSS_AC_WTHDRAW] ([MATID], [MATNO], [STPRICE_ID], [MS_CD], [QTY], [PRICE], [DateCreated], [Name], [DeptID], [CreatedID_by], [JvHeader_ID], [line_id], [createby]) VALUES (1005, N'1411-0131', 1118, N'914016', CAST(31.00 AS Decimal(16, 2)), 105, CAST(0x0000A3DB00000000
    AS DateTime), N'0', 13, NULL, NULL, 59, NULL)
    INSERT [dbo].[GSS_AC_WTHDRAW] ([MATID], [MATNO], [STPRICE_ID], [MS_CD], [QTY], [PRICE], [DateCreated], [Name], [DeptID], [CreatedID_by], [JvHeader_ID], [line_id], [createby]) VALUES (1006, N'1411-0131', 105, N'914015', CAST(34.00 AS Decimal(16, 2)), 70, CAST(0x0000A3DB00000000
    AS DateTime), N'0', 13, NULL, NULL, 59, NULL)
    SET IDENTITY_INSERT [dbo].[GSS_AC_WTHDRAW] OFF
    SET IDENTITY_INSERT [dbo].[GSS_HR_COSTCENTER] ON 
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (107, N'01', N'SME', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (1, N'02', N'ADMIN', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (2, N'03', N'MANUFACTURE', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (15, N'11', N'Pattern', 11, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (104, N'21', N'Foundry', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (16, N'2100', N'FD Common', NULL, 2)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (41, N'2110', N'Melting', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (108, N'2110-00', N'Melting Common', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (123, N'2110-01', N'Melting Repairing', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (109, N'2110-01-0101', N'Melting_เตา.1', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (124, N'2110-01-0201', N'Melting CM1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (125, N'2110-01-0202', N'Melting CM2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (126, N'2110-01-0203', N'Melting CM3', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (127, N'2110-01-0204', N'Melting CM4', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (128, N'2110-01-0205', N'Melting CM5', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (129, N'2110-01-0206', N'Melting CM6', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (130, N'2110-01-0207', N'Melting CM7', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (131, N'2110-01-0208', N'Melting CM8', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (132, N'2110-01-0209', N'Melting CM9', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (110, N'2110-02-0102', N'Melting_เตา.2', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (111, N'2110-03-0103', N'Melting_เตา.3', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (112, N'2110-04-0104', N'Melting_เตา.4', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (113, N'2110-05-0105', N'Melting_เตา.5', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (114, N'2110-06-0106', N'Melting_เตา.6', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (115, N'2110-07-0107', N'Melting_เตา.7', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (116, N'2110-08-0108', N'Melting_เตา.8', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (117, N'2110-09-0109', N'Melting_เตา.9', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (118, N'2110-10-0110', N'Melting_เตา.10', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (119, N'2110-11-0111', N'Melting_เตา.11', 12, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (18, N'2111', N'Molding', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (42, N'2111-01', N'Core Common', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (151, N'2111-01-0201', N'Moulding -Core _CSC1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (152, N'2111-01-0202', N'Moulding -Core _CSC2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (148, N'2111-01-0401', N'Moulding -Core _CS-1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (149, N'2111-01-0402', N'Moulding -Core _CS-2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (150, N'2111-01-0501', N'Moulding -Core _MP-1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (43, N'2111-0110', N'Core - HSP', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (44, N'2111-0111', N'Core - AVS', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (45, N'2111-0112', N'Core - VML', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (46, N'2111-0113', N'Core - AMF', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (47, N'2111-0114', N'Core - DISA', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (48, N'2111-02', N'Molding Line Common', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (49, N'2111-0210', N'Molding Line - HSP', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (144, N'2111-0210-0201', N'Moulding Line-HSP_CHSP1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (145, N'2111-0210-0202', N'Moulding Line-HSP_CHSP2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (146, N'2111-0210-0203', N'Moulding Line-HSP_CHSP3', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (143, N'2111-0210-0301', N'Moulding Line-HSP_HSP', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (50, N'2111-0211', N'Molding Line - AVS', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (139, N'2111-0211-0201', N'Moulding Line-AVS_CAVS', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (140, N'2111-0211-0202', N'Moulding Line-AVS_CAV1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (141, N'2111-0211-0203', N'Moulding Line-AVS_CAV2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (142, N'2111-0211-0204', N'Moulding Line-AVS_CAV3', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (138, N'2111-0211-0301', N'Moulding Line-AVS_AVS', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (51, N'2111-0212', N'Molding Line - VML', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (137, N'2111-0212-0201', N'Moulding Line-VML_CVML', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (136, N'2111-0212-0301', N'Moulding Line-VML_VML', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (52, N'2111-0213', N'Molding Line - AMF', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (134, N'2111-0213-0201', N'Moulding Line-AMF_CAMF1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (135, N'2111-0213-0202', N'Moulding Line-AMF_CAMF2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (133, N'2111-0213-0301', N'Moulding Line-AMF_AMF', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (53, N'2111-0214', N'Molding Line - DISA', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (147, N'2111-0214-0301', N'Moulding Line-DISA_DISA', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (54, N'2111-0215', N'Finishing Small - Shot Blast', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (55, N'2111-0216', N'Finishing Small - Grinding', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (159, N'2111-0216-1101', N'Moulding-Finishing-small grinding_G1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (160, N'2111-0216-1102', N'Moulding-Finishing-small grinding_G2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (161, N'2111-0216-1103', N'Moulding-Finishing-small grinding_G3', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (162, N'2111-0216-1104', N'Moulding-Finishing-small grinding_G4', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (163, N'2111-0216-1105', N'Moulding-Finishing-small grinding_G5', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (164, N'2111-0216-1106', N'Moulding-Finishing-small grinding_G6', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (165, N'2111-0216-1107', N'Moulding-Finishing-small grinding_G7', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (166, N'2111-0216-1108', N'Moulding-Finishing-small grinding_G8', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (167, N'2111-0216-1109', N'Moulding-Finishing-small grinding_G9', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (168, N'2111-0216-1110', N'Moulding-Finishing-small grinding_G10', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (56, N'2111-0217', N'Finishing Small - Oil Painting', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (57, N'2111-0218', N'Finishing Small - Packing', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (58, N'2111-0219', N'Finishing Line - Shot Blast', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (153, N'2111-0219-0901', N'Moulding-Finishing Line Shot Blast_SB-1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (154, N'2111-0219-0902', N'Moulding-Finishing Line Shot Blast_SB-2', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (155, N'2111-0219-0903', N'Moulding-Finishing Line Shot Blast_SB-3', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (156, N'2111-0219-0904', N'Moulding-Finishing Line Shot Blast_SB-4', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (157, N'2111-0219-0905', N'Moulding-Finishing Line Shot Blast_SB-5', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (158, N'2111-0219-0906', N'Moulding-Finishing Line Shot Blast_SB-6', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (59, N'2111-0220', N'Finishing Line - Grinding', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (60, N'2111-0221', N'Finishing Line - Oil Painting', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (61, N'2111-0222', N'Finishing Line - Packing', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (62, N'2111-03', N'Molding Repairing', 13, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (19, N'2112', N'F1', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (63, N'2112-00', N'F1 Common', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (64, N'2112-01', N'Molding Roll', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (65, N'2112-0110', N'Grinding Roll', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (66, N'2112-02', N'Molding M/C Tool', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (67, N'2112-0210', N'Finishing F1', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (68, N'2112-0211', N'Shot Blast F1', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (69, N'2112-0212', N'Grinding F1', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (70, N'2112-0213', N'Painting F1', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (71, N'2112-0214', N'Packing F1', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (72, N'2112-0215', N'Repairing F1', 14, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (20, N'2113', N'F2', NULL, NULL)
    GO
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (73, N'2113-00', N'F2 Common', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (74, N'2113-01', N'Molding Press Die', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (75, N'2113-02', N'Finishing F2', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (76, N'2113-03', N'Shot Blast F2', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (77, N'2113-04', N'Grinding F2', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (78, N'2113-05', N'Painting F2', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (79, N'2113-06', N'Repairing F2', 15, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (105, N'51', N'Machine', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (21, N'5100', N'MC Common', NULL, 3)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (22, N'5110', N'SME M/C', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (80, N'5110-00', N'SME M/C Common', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (81, N'5110-01', N'SME M/C CNC Late', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (82, N'5110-02', N'M/C Center', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (83, N'5110-03', N'Timing', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (84, N'5110-04', N'Milling', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (85, N'5110-05', N'SME M/C Grinding', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (86, N'5110-06', N'Drilling', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (87, N'5110-07', N'Boring', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (88, N'5110-08', N'Honning', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (89, N'5110-09', N'Double Colume', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (90, N'5110-10', N'Painting', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (91, N'5110-11', N'SME M/C Packing', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (23, N'5111', N'ROLL M/C', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (92, N'5111-00', N'ROLL M/C Common', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (93, N'5111-01', N'Rough Cut', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (94, N'5111-02', N'Center', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (95, N'5111-03', N'ROLL M/C  CNC Late', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (96, N'5111-04', N'M/C Center (Ring roll)', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (97, N'5111-05', N'ROLL M/C Grinding', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (98, N'5111-06', N'Plan Cut', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (99, N'5111-07', N'Flower Cut', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (100, N'5111-08', N'Drilling', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (101, N'5111-09', N'Hand Finish', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (102, N'5111-10', N'ROLL M/C Packing', 16, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (106, N'81', N'Maintenance', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (24, N'8100', N'MT Common', NULL, 3)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (3, N'91', N'ADMIN', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (4, N'9100', N'Admin Common', NULL, 5)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (5, N'9110', N'Account', 1, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (6, N'9111', N'Purchase', 2, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (7, N'9112', N'Human Resource', 3, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (8, N'9113', N'Quality Assurance', 4, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (9, N'9114', N'Quality Control', 5, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (10, N'9115', N'Safety', 6, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (11, N'9116', N'Doc.Control', 7, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (12, N'9117', N'Sale', 8, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (13, N'9118', N'Planning', 9, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (14, N'9119', N'Store&Delivery', 10, NULL)
    INSERT [dbo].[GSS_HR_COSTCENTER] ([Cost_ID], [Cost_code], [Cost_name], [Dept_ID], [DeptGroup_ID]) VALUES (120, N'9120', N'R & D Engineering', 19, NULL)
    SET IDENTITY_INSERT [dbo].[GSS_HR_COSTCENTER] OFF
    SET IDENTITY_INSERT [dbo].[GSS_HR_COSTRELATION] ON 
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (1, N'02', N'01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (2, N'03', N'01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (3, N'91', N'02', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (4, N'9100', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (5, N'9110', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (6, N'9111', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (7, N'9112', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (8, N'9113', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (9, N'9114', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (10, N'9115', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (11, N'9116', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (12, N'9117', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (13, N'9118', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (14, N'9119', N'91', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (15, N'11', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (16, N'2100', N'21', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (17, N'2110', N'21', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (18, N'2111', N'21', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (19, N'2112', N'21', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (20, N'2113', N'21', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (21, N'5100', N'51', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (22, N'5110', N'51', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (23, N'5111', N'51', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (24, N'8100', N'81', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (121, N'2110-01', N'2110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (122, N'2110-01-0201', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (123, N'2110-01-0202', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (124, N'2110-01-0203', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (125, N'2110-01-0204', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (126, N'2110-01-0205', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (127, N'2110-01-0206', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (128, N'2110-01-0207', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (129, N'2110-01-0208', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (130, N'2110-01-0209', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (131, N'2111-0213-0301', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (132, N'2111-0213-0201', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (133, N'2111-0213-0202', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (134, N'2111-0212-0301', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (135, N'2111-0212-0201', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (136, N'2111-0211-0301', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (137, N'2111-0211-0201', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (42, N'2111-01', N'2110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (43, N'2111-0110', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (44, N'2111-0111', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (45, N'2111-0112', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (46, N'2111-0113', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (47, N'2111-0114', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (48, N'2111-02', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (49, N'2111-0210', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (50, N'2111-0211', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (51, N'2111-0212', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (52, N'2111-0213', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (53, N'2111-0214', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (54, N'2111-0215', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (55, N'2111-0216', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (56, N'2111-0217', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (57, N'2111-0218', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (58, N'2111-0219', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (59, N'2111-0220', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (60, N'2111-0221', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (61, N'2111-0222', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (62, N'2111-03', N'2111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (63, N'2112-00', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (64, N'2112-01', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (65, N'2112-0110', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (66, N'2112-02', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (67, N'2112-0210', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (68, N'2112-0211', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (69, N'2112-0212', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (70, N'2112-0213', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (71, N'2112-0214', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (72, N'2112-0215', N'2112', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (73, N'2113-00', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (74, N'2113-01', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (75, N'2113-02', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (76, N'2113-03', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (77, N'2113-04', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (78, N'2113-05', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (79, N'2113-06', N'2113', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (80, N'5110-00', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (81, N'5110-01', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (82, N'5110-02', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (83, N'5110-03', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (84, N'5110-04', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (85, N'5110-05', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (86, N'5110-06', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (87, N'5110-07', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (88, N'5110-08', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (89, N'5110-09', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (90, N'5110-10', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (91, N'5110-11', N'5110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (92, N'5111-00', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (93, N'5111-01', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (94, N'5111-02', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (95, N'5111-03', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (96, N'5111-04', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (97, N'5111-05', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (98, N'5111-06', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (99, N'5111-07', N'5111', NULL)
    GO
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (100, N'5111-08', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (101, N'5111-09', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (102, N'5111-10', N'5111', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (103, N'11', N'03', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (104, N'21', N'03', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (105, N'51', N'03', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (106, N'81', N'03', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (107, N'01', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (108, N'2110-00', N'2110', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (109, N'2110-01-0101', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (110, N'2110-02-0102', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (111, N'2110-03-0103', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (112, N'2110-04-0104', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (113, N'2110-05-0105', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (114, N'2110-06-0106', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (115, N'2110-07-0107', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (116, N'2110-08-0108', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (117, N'2110-09-0109', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (138, N'2111-0211-0202', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (139, N'2111-0211-0203', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (140, N'2111-0211-0204', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (141, N'2111-0210-0301', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (142, N'2111-0210-0201', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (143, N'2111-0210-0202', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (144, N'2111-0210-0203', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (145, N'2111-0214-0301', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (146, N'2111-01-0401', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (147, N'2111-01-0402', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (148, N'2111-01-0501', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (149, N'2111-01-0201', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (150, N'2111-01-0202', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (151, N'2111-0219-0901', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (152, N'2111-0219-0902', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (153, N'2111-0219-0903', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (154, N'2111-0219-0904', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (155, N'2111-0219-0905', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (156, N'2111-0219-0906', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (157, N'2111-0216-1101', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (158, N'2111-0216-1102', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (159, N'2111-0216-1103', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (160, N'2111-0216-1104', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (161, N'2111-0216-1105', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (162, N'2111-0216-1106', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (163, N'2111-0216-1107', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (164, N'2111-0216-1108', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (165, N'2111-0216-1109', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (166, N'2111-0216-1110', NULL, NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (118, N'2110-10-0110', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (119, N'2110-11-0111', N'2110-01', NULL)
    INSERT [dbo].[GSS_HR_COSTRELATION] ([Relation_ID], [Child_Code], [Parent_Code], [FLG]) VALUES (120, N'9120', N'91', NULL)
    SET IDENTITY_INSERT [dbo].[GSS_HR_COSTRELATION] OFF

    >> I want to sum every parent recursively to the top of parent <<
    The terms “parent” and “child” are part of network databases and NOT RDBMS. We have “weak entity” and “{strong entity” in our data models today.
    If you use the nested sets model, this hierarchical aggregation is easy. But your mindset is still in file systems, pointer chains and procedural language programming code. You also have no idea how ISO-11179 naming rules work. 
    Most of the data element names are garbage! Most of your code is garbage, even after we get over the fundamental design errors. 
    Think about how absurd “qty” as a data element name is in a schema. Quantity of what?? From logic (specifically the Law of Identity, the most fundamental law in mathematics) that “to be” (exist) is to be something in particular; so this has to be “<something
    in particular>_qty” to be valid. Your other data elemet names are also vague garbage. 
    We do NOT use flags in SQL; this is a predicate language like Assembly code. We do NOT set flags; we discover a current “state of being” with predicates. 
    Think about “GSS_Hr_Cost_Relation” as a name. Is there only one of them, as you have said?? Would also call a table of “Marriages” a “Man_Woman_Legal_Relations” ? NO! The relationship has a name of its own! 
    CAST(1 AS FLOAT) is better written AS a constant E1.0; but it is weird. why are you using FLOAT? Do you want rounding errors? Why do you write crap like “CAST(34.00 AS DECIMAL(16, 2)”  when an insertion of just 34.00 works better? Why do you write crap
    like “CAST(0x0000a3db00000000 AS DATETIME” instead of using ISO-8601 formats, DATE and DATETIME2(0) data types? 
    Then you have no idea what kind of attribute a “<something>_code” is and why it cannort ever be key. Go to any library and look at the Dewey DECIMAL Classification system. The hierarchy is in the encoding itself, NOT in some multiple levels of storage. 
    Why do you have more NULL-able columns than the loan systems of major automobile corporations? I can answer that! Your schema is a disaster that needs to be re-done. 
    Putting audit data into the table being audited is both stupid and illegal! And then to make it worse, “datecreated” should have been “creation_date” if the moron knew ISO-11179 rules. But it is still a crime; what happens to the audit data when the row is
    deleted or the table is dropped? Can a person with access to the data also have access to the audit trail? DOH! 
    The use of “NVARCHAR(50)” might be correct in places where the data actually is in Unicode varying strings. I think I have seen ~10 of them in 30 years of writing SQL. But everything does not qualify; most likely some moron using ACCESS or a ORM tool used this
    default because he is both stupid and lazy. Fire him; his ignorance is dangerous to the project. 
    Most ISO encodings are fixed length and between 9 and 16 characters with a regular expression for validation. Not all but most. 
    Finally, after all the decades of RDBMS, why do you use “mat_id INTEGER IDENTITY(1,1) NOT NULL”?? Why do you think that the insertion attempt count of one table is a valid logical attribute, much less a KEY? 
    You do not know how to write an INSERT UNTO statement! Look up the VALUES () clause and row constructions. 
    I have decades of my life invested in SQL and RDBMS. Reading code like this is painful. Can you please get a minimal education and correct this mess? I have been asked to write a book on bad SQL and this is classic illiterate programming! Almost nothing is
    right. 
    Sorry, but you wanted help and the best help is to stop you from doing more harm until you can learn how to do it properly. >> I want to sum every parent recursively to the top of parent <<
    The terms “parent” and “child” are part of network databases and NOT RDBMS. We have “weak entity” and “{strong entity” in our data models today.
    If you use the nested sets model, this hierarchical aggregation is easy. But your mindset is still in file systems, pointer chains and procedural language programming code. You also have no idea how ISO-11179 naming rules work. 
    Most of the data element names are garbage! Most of your code is garbage, even after we get over the fundamental design errors. 
    Think about how absurd “qty” as a data element name is in a schema. Quantity of what?? From logic (specifically the Law of Identity, the most fundamental law in mathematics) that “to be” (exist) is to be something in particular; so this has to be “<something
    in particular>_qty” to be valid. Your other data elemet names are also vague garbage. 
    We do NOT use flags in SQL; this is a predicate language like Assembly code. We do NOT set flags; we discover a current “state of being” with predicates. 
    Think about “GSS_Hr_Cost_Relation” as a name. Is there only one of them, as you have said?? Would also call a table of “Marriages” a “Man_Woman_Legal_Relations” ? NO! The relationship has a name of its own! 
    CAST(1 AS FLOAT) is better written AS a constant E1.0; but it is weird. why are you using FLOAT? Do you want rounding errors? Why do you write crap like “CAST(34.00 AS DECIMAL(16, 2)”  when an insertion of just 34.00 works better? Why do you write crap
    like “CAST(0x0000a3db00000000 AS DATETIME” instead of using ISO-8601 formats, DATE and DATETIME2(0) data types? 
    Then you have no idea what kind of attribute a “<something>_code” is and why it cannort ever be key. Go to any library and look at the Dewey DECIMAL Classification system. The hierarchy is in the encoding itself, NOT in some multiple levels of storage. 
    Why do you have more NULL-able columns than the loan systems of major automobile corporations? I can answer that! Your schema is a disaster that needs to be re-done. 
    Putting audit data into the table being audited is both stupid and illegal! And then to make it worse, “datecreated” should have been “creation_date” if the moron knew ISO-11179 rules. But it is still a crime; what happens to the audit data when the row is
    deleted or the table is dropped? Can a person with access to the data also have access to the audit trail? DOH! 
    The use of “NVARCHAR(50)” might be correct in places where the data actually is in Unicode varying strings. I think I have seen ~10 of them in 30 years of writing SQL. But everything does not qualify; most likely some moron using ACCESS or a ORM tool used this
    default because he is both stupid and lazy. Fire him; his ignorance is dangerous to the project. 
    Most ISO encodings are fixed length and between 9 and 16 characters with a regular expression for validation. Not all but most. 
    Finally, after all the decades of RDBMS, why do you use “mat_id INTEGER IDENTITY(1,1) NOT NULL”?? Why do you think that the insertion attempt count of one table is a valid logical attribute, much less a KEY? 
    You do not know how to write an INSERT UNTO statement! Look up the VALUES () clause and row constructions. 
    I have decades of my life invested in SQL and RDBMS. Reading code like this is painful. Can you please get a minimal education and correct this mess? I have been asked to write a book on bad SQL and this is classic illiterate programming! Almost nothing is
    right. 
    Sorry, but you wanted help and the best help is to stop you from doing more harm until you can learn how to do it properly. 
    --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

  • In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp

    Dear Friends,
    TagLib how can I get the Attribute value (like JavaBean) in jsp .
    I do this thing.
    public void setPageContext(PageContext p) {
              pc = p;
    pc.setAttribute("id", new String("1") );
              pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
              pc.setAttribute("last_name", new String("singh"));
    but in Jsp
    <td>
    <%=pageContext.getAttribute("first_name"); %>
    cause null is returing.
    Pls HELP me
    with regards
    Siddharth Singh

    First, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
    Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
    public class MyTag extends SimpleTagSupport
      public void doTag()
        PageContext pc = (PageContext)getJspContext();
        pc.setAttribute("first_name", "Siddharth");
        pc.setAttribute("last_name", "Singh");
        pc.setAttribute("id", "1");
    }Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
    public class MyTag extends TagSupport
      public void doStartTag()
        pageContext.setAttribute("first_name", "Siddharth");
        pageContext.setAttribute("last_name", "Singh");
        pageContext.setAttribute("id", "1");
    }In each case, this sort of thing should work:
    <mytags:MyTag />
    <%= pageContext.getAttribute("first_name") %>I

  • Select_list_from_lov, cant get the returning value

    Hi
    I try to use a apex_item.select_list_from_lov in a wizard. The LOV that I have is a dynamic list.
    everything works fine, only I cant get the return value of the selected items.
    multi select list
    htp.p(apex_item.SELECT_LIST_FROM_LOV
    ( 2,
    'MOS_ROL_OMSCHRIJVING',
    ' MULTIPLE HEIGHT=5',
    'NO',
    null,
    null,
    null,
    null,
    'NO')
    trying to see what the return values are, but got nothing.
    :p12_test := :f02;
    (p12_test is a textfield)
    any assistance would be greatly appreciated.
    Thanks
    using apex 4.0.

    >
    trying to see what the return values are, but got nothing.
    :p12_test := :f02;
    (p12_test is a textfield)
    >
    f02 is an associative array. See Referencing Arrays in the APEX API Reference for information on how to access values of items created using apex_item methods.

  • Can't get the current value of item.

    i user javascript to set a item value by a Partial Page Refresh .then i want to turn to another page by a button and Transfer the item's new value to the second page's item,but the value of the item is always teh old value but not de new value,how can i get the new value of the item first. thanks;

    Hi 蓝色理想_行者 ( Ideal _ blue Walker),
    >
    i user javascript to set a item value by a Partial Page Refresh .then i want to turn to another page by a button and Transfer the item's new value to the second page's item,but the value of the item is always teh old value but not de new value,how can i get the new value of the item first.
    >
    Values set using JavaScript are present only in HTML DOM, not in the session state. To set the value in session state you need to use PL/SQL.
    Exact implementation will depend on how you navigate to the second page, by doing a submit or something else.
    Cheers,

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • Get the return value of an RFC function / BAPI

    Hello,
    I'm a Web Dynpro Java beginner and I try to get the return value (domain: NUMC6) of an RFC function without success.
    Here is what I do, could you please tell me what is wrong?
    First, here is my context:
    Context
    |
    |---- ZMy_Bapi
         |
         |---- MyOutputResult
         |     |
         |     |---- MyReturnValue
         |
         |---- MyInput
    My model:
    MyModel
    |
    |---- ZMy_Bapi_Input
         |
         |---- Output
         |     |
         |     |---- ZMy_Bapi_Output
         |          |
         |          |---- Return_Value
         |
         |---- Input_Value
    The mapping between them:
    - MyInput is mapped to Input_Value
    - MyReturnValue is mapped to Return_Value
    And my code:
    ZMy_Bapi_Input bapiInput = new ZMy_Bapi_Input();
    wdContext.nodeZMy_Bapi().bind(bapiInput);
    bapiInput.setInput_Value("A value");
    executeZMy_Bapi();
    ZMy_Bapi_Output bapiOutput = new ZMy_Bapi_Output();
    wdContext.nodeMyOutputResult().bind(bapiOutput);
    IMyOutputResultElement outputElement = wdContext.nodeMyOutputResult().currentMyOutputResultElement();
    String result = outputElement.getMyReturnValue();
    Finally, here is the code of the executeZMy_Bapi() function:
    try {
         wdContext.currentZMy_BapiElement().modelObject().execute();
         wdContext.nodeMyOutputResult().invalidate();
    } catch (Exception ex) {
         ex.printStackTrace();
    My problem is that "result" keeps being empty
    Thanks in advance for your help!

    It still doesn't work, I'm gonna turn crazy!
    But there is one good point: I get the method you mentioned: getZMy_Bapi_OutputElementAt and getMyReturnValue without casting, just as you said first.
    Here are the updated context, model, mapping and code.
    Context:
    MyContext
    |
    |---- ZMy_Bapi
         |
         |---- MyOutputResult
         |     |
         |     |---- ZMy_Bapi_Output
         |          |
         |          |---- MyReturnValue
         |
         |---- MyInput
    Model:
    MyModel
    |
    |---- ZMy_Bapi_Input
    |     |
    |     |---- Output
    |     |     |
    |     |     |---- ZMy_Bapi_Output
    |     |          |
    |     |          |---- Return_Value
    |     |
    |     |---- Input_Value
    |
    |
    |---- ZMy_Bapi_Output
         |
         |---- Return_Value
    Mapping
    ZMy_Bapi     --> ZMy_Bapi_Input
    MyOutputResult     --> Output
    ZMy_Bapi_Output     --> ZMy_Bapi_Output
    MyReturnValue     --> Return_Value
    MyInput          --> Input_Value
    Code
    ZMy_Bapi_Input bapiInput = new ZMy_Bapi_Input();
    wdContext.nodeZMy_Bapi().bind(bapiInput);
    bapiInput.setInput_Value("A value");
    executeZMy_Bapi();
    ZMy_Bapi_Output bapiOutput = new ZMy_Bapi_Output();
    wdContext.nodeMyOutputResult().bind(bapiOutput);
    String result = "";
    for (int i = 0; i < wdContext.nodeZMy_Bapi_Output().size(); i++) {
         IZMy_Bapi_OutputElement resultElem = wdContext.nodeZMy_Bapi_Output().getZMy_Bapi_OutputElementAt(i);
         if (resultElem.getMyReturnValue() != "" && resultElem.getMyReturnValue() != null) {
              result = resultElem.getMyReturnValue();
    Edited by: Franis Pignon on Oct 17, 2008 11:16 PM

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference.
    About:config does show some default values but I need the source from which about:config picks up the default value.
    Any help in this direction is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The prefs that aren't hidden if they are the default are stored in two JavaScript text files in the Firefox program folder
    You can open them via these links in a Firefox tab:
    <code>resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js
    </code>
    ([/forum/1/702598])

Maybe you are looking for

  • How to setup Proxy in new environment?

    Hi All,           We have implemented a new ECC and PI environment. When we try to regenerate the Inbound proxy in ECC for a proxy message already defined in new PI Integration repository, we get the following error message: Diagnosis The object curr

  • DW acting badly-Tossing prefs not helping

    Dreamweaver CS3 on a Mac Mini OS 10.5.6. Just yesterday, I was updating my website by switching out old images with new ones. But today, DW isn't letting me do it. I open a page (existing or new) and go to common>Image and go though the whole place i

  • Canon G16 Raw File completly shuts down the computer

    I am using Aperture3.6 and Yosemite (completely updated) on a 4 year MacBook Air. I have used Aperture and macs for many many  years and have been shooting pictures in RAW and editing them in Aperture for 8 years. I have a huge library of RAW files i

  • SharePoint Online - Trying to add an app from Organization's Catalog causes "Something Went Wrong"

    Hi Everyone, I registered my app with appregnew.aspx, and I uploaded the app file to the app catalog. I even successfully installed my app to the sharepoint site. But when I tried to use it I realized I gave it no permissions. So I went back to visua

  • 10$ reward (paypal) to fix apple sign-in page missing icons

    still missing icons on this stupid page after reformatting and reinstalling the os all i see are a bunch of question marks and some of the page sometimes as many as 7 are missing it is now officially driving me nuts as i sign-in everyday nothing i tr