How to use Flex fields

Hi ,
I am using ODI 10.1.3.5.4 with Oracle to Oracle data transfer. I tried to create Flex Field. I have followed following steps:
1. In security Manager, Objects Tab, I selected Data Server and added a Flex field as SOURCE_DATABASE_LINK_NAME.
2. In Topology managaer, Physical Architecture, I have opend a data server and gone to Flex field and put the value 'xyz'
3. In Designer, Project tab, I had gone to LKM. Inside it, I am giving like this :
<%=odiRef.getSrcTablesList("", "[SCHEMA].[RES_NAME]@[SOURCE_DATABASE_LINK_NAME]", ", ", "")%>
OR
<%=odiRef.getInfo("SOURCE_DATABASE_LINK_NAME")%>
OR
<%=odiRef.getFlexFieldValue("SOURCE_DATABASE_LINK_NAME")%>
I am getting errors with all options. None of the options work.
If I use getFlexFieldValue(), it says [PROPERTY: "SOURCE_DATABASE_LINK_NAME" not found.]
If I use other 2, I get Unknown flexfield code.
Here what I want to get is the value xyz, so that I can read the DB Link name so that I can refer in my code.
Can someone help me to figure out where I am doing wrong.
Thanks
Arun
Edited by: Tayalarun on Feb 4, 2010 1:11 AM

Thanks to both of you of taking time to help me
I have tried you the Siddharth option first.
I used the TRY block in my LKM with Technology as Oracle. I have put the following code:
create or replace view <%=odiRef.getObjectNameDefaultPSchema("L", "" , "W")%><%=odiRef.getInfo("COLL_NAME")%>
     <%=odiRef.getColList("", "[CX_COL_NAME]", ",\n\t", "", "")%>
as select     <%=odiRef.getPop("DISTINCT_ROWS")%>
     <%=odiRef.getColList("", "[EXPRESSION]", ",\n\t", "", "")%>
from     
<%
try
String [] strTableNames = odiRef.getSrcTablesList("","[SCHEMA].[RES_NAME]", "~", "").split("~");
String [] strTableAlias = odiRef.getSrcTablesList("","[ALIAS]", "~", "").split("~");
String strDbLink = odiRef.getInfo("SRC_DSERV_NAME");
int loopCount;
for (loopCount=0; loopCount<strTableNames.length; loopCount++)
if(loopCount>0)
out.print(",");
out.print(strTableNames[loopCount] + "@" + strDbLink + " " + strTableAlias[loopCount]);
catch(Exception e)
out.print("Error here:"+e.getMessage());
%>
where     (1=1)
<%=odiRef.getFilter()%>
<%=odiRef.getJrnFilter()%>
<%=odiRef.getJoin()%>
<%=odiRef.getGrpBy()%>
<%=odiRef.getHaving()%>
On execution, I get the message in my From Clause:
Error:Unknown flexfield code.
I have tried other option also:
<% v_java3=odiRef.getInfo("SRC_DSERV_NAME");%>
<%=odiRef.getSrcTablesList("", "[SCHEMA].[RES_NAME]out.print(v_java3);", ", ", "")%>
On execution, I get:
WMC.ACCOUNTout.print(v_java3);, WMC.ACCT_GROUPout.print(v_java3);
Here it didn't resolve the v_java3.
Can you help me in getting some resolution.
Thanks
Arun

Similar Messages

  • How to update flex field data on a human task?

    After entering a human task and assigning the data how do you then update flex field data whilst the task is still assigned. I'm using the task services to communicate with the task and applying filters based on the flex field data.
    I want to update the data when actions take place on the task e.g. suspend, aquire, release.
    Any ideas?

    You can fetch the task , change the flex attribute value and update the task. Find below the steps we do for updating one of the TextAttribute
    Task completeTask =  // get the task using task query service
    completeTask.getSystemMessageAttributes().setTextAttribute2(updatedfolderName);
    completeTask = // update the task using "updateTask" method

  • How to use Flex Builders Auto Generated CFCs

    OK. Not only have I already gone to a 4 day flex training,
    have an advanced coldfusion certification and work with 3 coworkers
    who have done the same...none of us can figure out how in the heck
    the flex builder's autogenerated cfc's are to be used. No big deal
    on the fact that this might be something we simply are encountering
    for the first time, but the complete and utter absence of a single
    piece of example code or documentation stating how to use this code
    correctly is very very very very irritating.
    Can anybody, share with me anything about how these CFCs are
    to be used correctly. For example. We are using the wizard to
    generate an "Active Record CFC" set of cfc's for an example table
    contain four fields. We have a data grid that is now populated by
    the "getAllAsQuery" function....we would like to implement the
    feature of making this dataGrid updateable. We know how to pass
    data back and forth and yes we could write our own CFC to do
    this...but having it autogenerated is a really neat option...but
    the question remains....how does one use them!!!
    Any help would be much appreciated. Thanks in advance!

    Hi there, what's your name by the way?
    What is a VO or DTO, and why would you use it?
    This was copy from the Java world, so it's a very OOP principle, basically in the OOP world everything is a class that has methods and properties, and you represent everything with classes, a VO is just that a class that represents an entity in your app. You use it for a few reasons in my opinion:
    It allows you to pass strongly typed data between different layers in your app.
    It's more verbose, it's a good OOP practice, and also makes debugging and reading you code easier.
    It allows easy data type conversion between CF and Flex.
    You obviously know how to use the wizards, after you select your table and open the wizard you'll see three different CFC types, if you're using LCDS then select that type if you don't I'll recommend you to go with BEAN/DAO. In Flex Builder you can create a folder link to a system folder, so if you create a folder named MyCFCs and you set this virtual folder to be hold inside c:\ColdFusion8\wwwroot every file that you put in this folder will be place in c:\ColdFusion8\wwwroot so you don't have to manually copy those files.
    In this wizard you'll see CFC folder in there you can select your virtual folder, you'll see below the CFC package name this is extremely important to be set right, what is the CFC package name? Basically it's the same folder structure where your CFCs will be located for instance let's say you're gonna place the files in this folder structure c:\ColdFusion8\wwwroot\com\myPersonalDomain\ so your CFC package name will be com.myPersonalDomain.
    You'll probably also would like to enable the option: Create an ActionScript value object in addition to CFCs, the folder where you place this file have to mimic the CFCs folder structure so for an instance you'll have to save inside your src folder, inside a folder com, an finally inside a folder myPersonalDomain . src/com/myPersonalDomain, and the AS Package name should be the same as the CFC.
    Once you're done and click finish, you'll see for files created, one of the the AS VO , and three CFCs.
    yourDataTable.CFC
    This is a CFC that creates the VO or DTO in CFC, it has the same properties definition that the AS version has, also the setters and getter for every property.
    yourDataTableDAO.CFC
    This CFC contains all the code that handles the database access it a could be an insert, update delete or just a read query.
    yourDataTableGateway.CFC
    This is a bridge between your Flex app and your CFCs, it contains a set of methods commonly use when you access a DB, this CFC invocates the methods in the yourDataTableDAO.cfc and returns an object or an array of objects of yourDataTable.CFC type to Flex.
    In Flex what do you have to do in order to use VOs?
    Add a reference to yourDataTable.as class
    Create a remote object.
    Create the event handler(s)
    Make a call to the remote object.
    <mx:Script>
         <![CDATA[
                   import com.myPersonalDomain;
                   import mx.controls.Alert;
                 import mx.rpc.events.ResultEvent;
                  private var myDummyVar:myDataTable;
              private function myEventHandler(e:ResultEvent):void{
                   //do Something
                   trace(event.result.toString());
         ]]>
    </mx:Script>
    <mx:RemoteObject id="myRO" destination="ColdFusion"
    source="com.myPersonalDomain.myDataTableGateway">
         <mx:method name="getAll" result="myResultHandler(event)"
    fault="Alert.show(event.fault.toString())" >
    </mx:RemoteObject>
    <mx:Button label="Call CF" click="myRO.getAll()" />
    Well I hope this would help you, I'm kinda tired this has been by far the largest post I've written.

  • [Forum FAQ] How to use multiple field terminators in BULK INSERT or BCP command line

    Introduction
    Some people want to know if we can have multiple field terminators in BULK INSERT or BCP commands, and how to implement multiple field terminators in BULK INSERT or BCP commands.
    Solution
    For character data fields, optional terminating characters allow you to mark the end of each field in a data file with a field terminator, as well as the end of each row with a row terminator. If a terminator character occurs within the data, it is interpreted
    as a terminator, not as data, and the data after that character is interpreted and belongs to the next field or record. I have done a test, if you use BULK INSERT or BCP commands and set the multiple field terminators, you can refer to the following command.
    In Windows command line,
    bcp <Databasename.schema.tablename> out “<path>” –c –t –r –T
    For example, you can export data from the Department table with bcp command and use the comma and colon (,:) as one field terminator.
    bcp AdventureWorks.HumanResources.Department out C:\myDepartment.txt -c -t ,: -r \n –T
    The txt file as follows:
    However, if you want to bcp by using multiple field terminators the same as the following command, which will still use the last terminator defined by default.
    bcp AdventureWorks.HumanResources.Department in C:\myDepartment.txt -c -t , -r \n -t: –T
    The txt file as follows:
    When multiple field terminators means multiple fields, you use the below comma separated format,
    column1,,column2,,,column3
    In this occasion, you only separate 3 fields (column1, column2 and column3). In fact, after testing, there will be 6 fields here. That is the significance of a field terminator (comma in this case).
    Meanwhile, using BULK INSERT to import the data of the data file into the SQL table, if you specify terminator for BULK import, you can only set multiple characters as one terminator in the BULK INSERT statement.
    USE <testdatabase>;
    GO
    BULK INSERT <your table> FROM ‘<Path>’
     WITH (
    DATAFILETYPE = ' char/native/ widechar /widenative',
     FIELDTERMINATOR = ' field_terminator',
    For example, using BULK INSERT to import the data of C:\myDepartment.txt data file into the DepartmentTest table, the field terminator (,:) must be declared in the statement.
    In SQL Server Management Studio Query Editor:
    BULK INSERT AdventureWorks.HumanResources.DepartmentTest FROM ‘C:\myDepartment.txt’
     WITH (
    DATAFILETYPE = ‘char',
    FIELDTERMINATOR = ‘,:’,
    The new table contains like as follows:  
    We could not declare multiple field terminators (, and :) in the Query statement,  as the following format, a duplicate error will occur.
    In SQL Server Management Studio Query Editor:
    BULK INSERT AdventureWorks.HumanResources.DepartmentTest FROM ‘C:\myDepartment.txt’
     WITH (
    DATAFILETYPE = ‘char',
    FIELDTERMINATOR = ‘,’,
    FIELDTERMINATOR = ‘:’
    However, if you want to use a data file with fewer or more fields, we can implement via setting extra field length to 0 for fewer fields or omitting or skipping more fields during the bulk copy procedure.  
    More Information
    For more information about filed terminators, you can review the following article.
    http://technet.microsoft.com/en-us/library/aa196735(v=sql.80).aspx
    http://social.technet.microsoft.com/Forums/en-US/d2fa4b1e-3bd4-4379-bc30-389202a99ae2/multiple-field-terminators-in-bulk-insert-or-bcp?forum=sqlgetsta
    http://technet.microsoft.com/en-us/library/ms191485.aspx
    http://technet.microsoft.com/en-us/library/aa173858(v=sql.80).aspx
    http://technet.microsoft.com/en-us/library/aa173842(v=sql.80).aspx
    Applies to
    SQL Server 2012
    SQL Server 2008R2
    SQL Server 2005
    SQL Server 2000
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • Using Flex Fields in BPM worklist

    Hi,
    Am trying to use flexfileds in BPM worklist so that I can have additional attributes from the payload associated from the humantask type , in the task header that appears in home page.
    Am able to create new label and then tried following steps :-
    1. Clicked Edit mappings by task type and selected my task type whose payload attributes are required to be mapped with the flex fields.
    2. The value "default/sampleta!1.0*soa_b4396581-d005-4374-be29-5cd725c3e134/Humantask" gets populated in the fields "Edit mappings by task type".
    3. However , it shows the message "There are no simple Payload Attributes associated with this TaskType".
    I thought that I need to make use of Mapped Attributes section in the Data tab found in humanworkflow task . However when I tried adding attribute there it showed me following error message :-
    Error in workflow service Web service operation invocation.
    Error in workflow service Web service operation invocation. The error is ORA-30501:Error in authenticating user.
    Error in authenticating and creating a workflow context for user jazn.com/dev_soa_admin.
    Verify that the user credentials and identity service configurations are correct.
    Verify that the SOAP connection information for the server is correct.
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.convertSOAPFaultException(TaskQueryServiceSOAPClient.java:242)
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.invoke(TaskQueryServiceSOAPClient.java:203)
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.authenticate(TaskQueryServiceSOAPClient.java:253)
         at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:167)
         at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:185)
         at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupUtil.listAttributeLabels(LookupUtil.java:436)
         at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupUtil.listProtectedAttributeLabels(LookupUtil.java:406)
         at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupDataProviderImpl.handleFlex(LookupDataProviderImpl.java:105)
         at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupDataProviderImpl.getResult(LookupDataProviderImpl.java:38)
         at oracle.tip.tools.ide.workflow.api.FlexFieldDetailsPanel.initializeAttributeCombo(FlexFieldDetailsPanel.java:175)
         at oracle.tip.tools.ide.workflow.api.ConnectionComponent._applicationServerChanged(ConnectionComponent.java:350)
         at oracle.tip.tools.ide.workflow.api.ConnectionComponent.access$1000(ConnectionComponent.java:60)
         at oracle.tip.tools.ide.workflow.api.ConnectionComponent$1.run(ConnectionComponent.java:361)
         at java.lang.Thread.run(Thread.java:619)
    ORABPEL-30044
    I have couple of questions :-
    1. For the payload attribute to appear in the BPM worklist sreen while mapping for the flex field , I understand that it should be of simple type . My payload looks like this :-
    <ns:employees>
    <ns:employee>
    <ns:name>John</ns:name>
    <ns:age>37</ns:initiator>
    <ns:salary>20000</ns:salary>
    </ns:employee>
    </ns:employees>
    I expected name , age , salary to appear in BPM worklist for mapping after I select task type against "Edit mappings by task type" while doing flex field mapping however it is showing me : There are no simple Payload Attributes associated with this TaskType
    2. Please advise if I need to anything extra like adding mapped attributes (in Data section of Humantask) or Collections in Task parameter window .
    Can anyone please help me on this .
    Thanks in advance !

    Are you sure the xml is correct here:
    <ns:employee>
    <ns:name>John</ns:name>
    <ns:age>37</ns:initiator>
    <ns:salary>20000</ns:salary>
    </ns:employee>
    It should be <ns:age>37</ns:age>, I believe.
    I have a xsd definition like this:
    <element name="loanApplication">
    <complexType>
    <sequence>
         <element name="SSN" type="string"/>
         <element name="email" type="string"/>
         <element name="customerName" type="string"/>
         <element name="customerAge" type="int"/>
         <element name="customerAnnualIncome" type="double"/>
         <element name="city" type="string"/>
         <element name="state" type="string"/>
         <element name="country" type="string"/>
         <element name="loanAmount" type="double"/>
         <element name="carMake" type="string"/>
         <element name="carModel" type="string"/>
         <element name="carYear" type="string"/>
         <element name="creditRating" type="int"/>
         <element name="creditRisk" type="string"/>
         <element name="creditMaxAmount" type="double"/>
    </sequence>
    </complexType>
    </element>
    And I am able to do the mapping without any issues.

  • How to use Flex tag library in jsp

    Hi All,
    We are planning to use flex in our J2EE application in order
    to show some charts. Our j2ee application is in JSP,Struts. I have
    searched on google about this and found that I can include flex 3
    tab library in the jsp in order to use mxml tag in the jsp. I have
    written a sample program in the jsp which uses flex.
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <SCRIPT LANGUAGE="JavaScript">
    function showMessage() {
    message.value = "Use this application wisely";
    function hideMessage() {
    message.value = "";
    </SCRIPT>
    <mm:mxml border="5" onmouseover="showMessage();"
    onmouseout="hideMessage();">
    </mm:mxml>
    <TABLE>
    <TR>
    <TD><input type="text" name="message"
    size="50"></TD>
    </TR>
    </TABLE>
    I have added entry inweb.xml. See below,
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/tlds/flex-bootstrap.jar</taglib-location>
    </taglib>
    Following are the problems that I am currently facing.
    1) Could anybody let me know whether the entry of
    <taglib> tag is correct in the web.xml. Is it the correct
    jar(flex-bootstrap.jar) that I should include?
    2) If yes, from where to download it? or
    If no, what is correct jar that i should include and how?
    your response will be highly appriciated as this is the major
    requirement in our project?
    Thanks ,
    Chandan

    Hi,
    Pleas find details at the URL below.
    http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
    Hope this helps.

  • How to use Resever Field for Customer Master

    Hi
    My Client Requirement. Price should be determine with Sales ORG, Distribution channel, Division, Districts, Talukas and Villages.
    But Talukas and villages are not available in SAP standard systems.
    Is it possible to use reserver field in Customer Master for this purpose?
    If it is ok then please give suggestion how to use this reserve fields.
    Thanks in Advance
    Madhu

    Hello,
    the system-behavior that you describe is standard behaviour, because   
    the fields which you are describe (village and ..) doesn't exist in structure KOMG.                                                                               
    For using this field in the field catalog you can proceed like this:   
    1. create a new field for example ZZvillage...                             
    2. add the new field in the table T681F for the application 'V' and the
       usage 'A'                                                           
    3. add the field to the include-structure KOMKAZ                       
    4. fill the new fields in the userexit for pricing                     
       (Pricing_Prepare_TKOMK (TKOMP)                                                                               
    I hope that the information are helpful for you.    
    regards
    Claudia

  • How to use the field of 'FM for Determining Address' in report RSWUWFML2?

    Dear gurus,
    In the selection screen of report RSWUWFML2, there is a field named 'FM for Determining Address' . How to use it? Is it for sending e-mail to specific e-mail addresses?
    Regards
    David

    I will test soon. Thanks to all involved.

  • How i use header fields in soap adapter

    Hi Experts,
    I need use  header fields http  in soap adapter receiver but i don't know where's the Variable Header
    Do you know where i find this?
    Somebody know how i put header fields http in soap adapter receiver?
    Thanks for all,

    It is similar like in this blog:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Find in the online help the values for the SOAP adapter.
    You can only add additional fields, you cannot influence the standard field like content-type and content-id.
    Regards
    Stefan

  • How to use Image field in SQL-7 for curvs

    I sampling data from a NI-card. There will be a lot of data so I thought I should use Image-field in SQL-7 to save the hole curve. How do you do that?

    I would suggest looking into the Database Connectivity Toolset. It has complete SQL functionality and uses ADO to connect to many types of databases. I have it and it comes with example programs which demonstrate how to write to and read from databases using SQL.
    J.R. Allen

  • CS3 missing components or How to use Flex 2 components in CS3

    Does anyone have a good resource for how to use Flex2
    components in CS3?
    I found an install that said it would install Flex2
    components in CS3, but all it added waas the UIMovieClip for
    packaging Flash MC in swc's for Flex.
    Right now I am specifically trying to solve the missing
    dateField component in CS3.
    But I would like to find out if anyone has found a good
    resource for alternatives to all missing components in CS3.
    I'm hoping the answer is not to build them from scratch.
    Thanks,
    Hunter

    Hi,
    Pleas find details at the URL below.
    http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
    Hope this helps.

  • How to use $FLEX$ for DFF segment

    We have below requirement for “Add'l Salary Admin. Details” DFF.
    we have three segments:
    Current Additional Amount -first segment
    Additional Allowance Change % - second segment
    New Additional Allowance - third segment
    e.g.
    Now first segment has fixed value, Assume it is 2000 AED
    And in second segment if value is 3
    Then third segment should show the value: 2000 + 2000 * 3/100
    Third segment is dependent on segment1 and segment2.
    I think, we can achieve this by using $FLEX$
    But I need your guide line, how can we do that?

    below solution is only possible solution.
    Hi,
    Keeping the default SQL statement on its place, use table based value set for segment3 which contains all values from 0 to let say 1,000,000 (such that your calculated values falls in the range).
    Try it. It segment3 will now calculate on the basis of values of segment1 & 2.
    Regards
    Ayaz
    Thanks for everyone's input.

  • How to use $FLEX$ to pass FROM and TO param to another FROM and TO param

    Hello All,
    I have 2 parameters from customer and to customer, both these have same LOV,
    I have to add 2 more parameters from location and to location
    If i use $FLEX$.customer_LOV to pass to the from location LOV how can i use $FLEX$ to pass the TO customer LOV to TO Location LOV.
    As per my knowledge $FLEX$ can be passed from top to bottom in the list of parameters.
    Is there any other way to restrict.
    Regards,
    Sandeep V

    Hi,<br /> I am trying to configure BlazeDS with JBOSS Application Server.<br /> I have downloaded BlazeDS binary version - blazeds_bin_3-0-0-544.zip from Adobe. But in the installation steps, it says that copy blazeds.war, samples.war and console.war into <JBOSS_HOME>/server/default/deploy folder. But in this zip, it contains only blazeds.war file only. I have copied it to <JBOSS_HOME>/server/default/deploy folder.<br /><br />I have restarted JBoss. I didn't get any error. But when i give <br /> http://localhost:8080/blazeds ... i am always getting "Page not found 404" error.<br /><br />Please help me, if you have detailed steps to configure BlazeDS on JBoss.<br /><br />Thanks for your time.

  • How to use Flex with EJB3?

    Anybody know how to integrate Flex with Java?
    I have a EJB3 project with JPA etc...
    Have to use Eclipse with Flex plugin or can i use Flex Builder and Eclipse only for java classes? (preferring the second option)
    I'm getting crazy, because need this for my college work, too fast as possible.
    Please any explanation or sample.
    Thanks everyone.

    Matt you say, i do not need to write servlet, create wsdl...
    But if i dont do this, my Java Business Rules will be visible to client ?
    If yes...
    1- I need to write Servlet to use HTTP protocol to connect with Flex, then create wsdl of my EJB3.
    2- This wsdl will create client side of my application, then i create my Flex interface normally using HTTP Blaze DS ?

  • How to use two "field separator" in the same Comunication Channel

    Hi experts,
    I  upload flat files with XI, and my Comunication Channel is configured to use the field separator "~".
    FILA.fieldSeparator     ~
    Is posible to configure that Comunication Channel to accept two field separator. I want that upload flat files that has as separator "~" and flat files that has "|" .
    thanks
    regards

    IT IS not possible to have 2 fieldseparator to identify the fields of a record.

Maybe you are looking for