How to create a resource of query using CS component?

Hi all

Can someone please let me know how we can create a resource request (OOTB assettype WCS) using the option element CS?

Assettype - Query, OOTB assets can be created using two methods: 1) using the SQL query and 2) using CS elements.

I searched a lot of guides and has been unable to find even a small example or a snippet of code that must be used in an element cs while creating a resource request.  Even guide the developer gives example of using only one SQL query when creating a resource request and did not mention anything on the assets of the query to the CS elements.

It would be very very useful for me and most of them if an example can be provided. Thanks in advance.

Kind regards

Praveen

Hi Praveen,

In the attribute menu editor drop-DOWN using a resource request, you need the following:
-The SQL code in the assets of the query should return a column 'value '. For example:select name as value from shippingtype

-If the data type of the attribute using the attribute Editor is 'good', the query should also return property IDs. For example:select name as value, id as assetid from Product where...

See Designing Attribute Editors - 11g Release 1 (11.1.1.8.0)

Your original CallQuery was essentially correct except that you must

1. return a value column (and possibly an id column)

2. no loop on the results. The attribute editor will loop on the results.

3. set the name of the list the variable 'list '.

For example

<%
  String sqlQuery = "select name as value from Query";
%>

Note that this will return a list of the names of the assets of the query, which may or may not be what you need.

I hope this helps.

Kind regards

Stephan.

Tags: Fusion Middleware

Similar Questions

  • How to create the string of JSON using QVariantMap array?

    Hi all

    How to create sub string of Json using QVariantMap array?

    {
        "Test1": [
            {
                "dataTest1": "0000",
                "dataTest2": 1412,
                "dataTest3": "",
                "dataTest4": "0000",
            }
        ],
        "Test2": {
            "data1": 1412008,
            "data2": "0000",
            "data3": "A",
            "data4": "0000",
        }
    }
    

    Waiting for your answer please reply me as soon as possible.

    JSON array is QVariantList

    JSON object is QVariantMap

    then create a QVariantLsit and insert your QVariantMaps

  • How to create VI execution asynchronous step using the API

    I want to create a "run way asynchronous step VI" using the API TestStand in LabVIEW.

    Navigation on the details of the step and the properties of the object, apparently, that it is a type of 'special' step that is actually a SequenceCall.  However, I don't see how to access the data contained in this type of step.  I enclose my current VI used to 'Browse' the data for reference.

    Please advise on how to create this step.

    Thank you

    Hey LVB,

    I'm sorry, I didn't know that you always wanted to use the "Use the Prototype sequence" checkbox option.  In this case the attached code should demonstrate how this can be accomplished.

    Thank you

  • How to create a report page by using the Web layout editor

    Hi Experts,

    I use wcc11.1.1.7, I need to create the report page by using the Web layout editor, but in this applet (editor), there are only 3 types of link to the page: local page, external page, query, it must be of type of the active report (historical), why I can't see them? y at - it components should I activate this?

    Best regards

    It doesn't have to be in the link on the Page, but in the Page Type.

    See the documentation for http://docs.oracle.com/cd/E28280_01/doc.1111/e26694/e02_weblayout_edit.htm#i1068085 for more details.

  • How To Create VMs in vCenter model using Powershell

    Hey guys,.

    I'm new to powershell. Reading and learning. I need to create a script in response to the task in vsphere.

    1. create 600 virtual machines by using a template

    2. each VMs must have the same name except the last three digits. example:

    HostName: test001 - test600

    3. create virtual machines on a cluster of 6 esxi servers. randomly select a host when you create the virtual machine.

    example of

    Group A

    ESXi-host1

    ESXi-host2

    ESXi-host3

    ESXi-host4

    ESXi-host5

    ESXi-host6

    4. specific datastore (Mon-1)

    1..600 | Foreach {
        $i="{0:000}" -f $_
        Write-Host "Creating VM TEST$i"
        New-VM -Template MyTemplate -Name TEST$i -VMHost (Get-Cluster ClusterA | Get-VMHost | Get-Random) -Datastore LUN-1
    }
    
  • How to create interactive pdf to Ipad using InDesign CS6

    Hi I created a layout of Magazine using InDesign CS6 and wanted to be read on native Ipad reader (but not apps).  I put interactivity features like hyperlinks and page navigations and converted into interactive pdf file. The problem was the links and buttons are not displayed on the Ipad.

    I tried to use Acrobat Pro to create hyperlinks, and this time the navigation and hyperlinks are. But is there a way does not create hyperlinks manually one by one (especially the next page and previous page). If I have more than 100 pages of documents, this process will be very painful.

    Is there a solution to create interactive pdf directly from InDesign without creating links in Acrobat?

    Moved to InDesign forum

  • How to create this clipping shape collage using PS CS5.5

    I found this beautiful picture and you want to create an assignment like this for my class. I can't find any sense or tutorial on how to do. There is a picture on Pinterest, but indications are cut. Can anyone offer some advice on how you think that this image was built. I use the good old Photoshop CS5. Any help would be appreciated.

    self portrait silhouette collage sample1.jpg

    They do not have to look very far the image of the silhouette.  I put the following in Google Images, and the first shot is a perfect shot!

    You will have many choices to make, but CS5 has quick selection and refine edge, you're good to go.

    It's one of these 'ways to do' illustrations and none are necessarily better than others.  Whatever suites your style I guess.

    Can get you this? Filling head in layers are dependent order, (but you already knew that).  The upper layers are in front of the lower layers.  To clip the fill layers place the cursor on the join between the head and the first layer of fill, and Alt click.

  • How to create a scene of snow using PSE10

    There are many solutions on YouTube using PHOTOSHOP. but there is no available in post-secondary studies

    There are solutions to create "falling snow" on the EPS.

    I would like to replace a scene from summer to winter scene, with lying snow, in PhotoShop ELEMENTS 10. Example (only one) on YouTube, with the House, is quite unrealistic.

    Can someone point me in the right direction.

    Thank you

    J

    How to add snow to the Photos in Photoshop Elements

  • How to create the div dyanimcally animation using jquery + javascript

    Hello

    After a week of research and without having the full result, I decided to download the new discussion here and maybe some of you guys are going to help me.thanks in advance.

    the include file:

    <! - execution of adobe Edge - >

    < meta http-equiv = "X-UA-Compatible" content = "IE = Edge" >

    < script type = "text/javascript" charset = "utf - 8" src = "animate_edgePreload.js" > < / script > "."

    <! - end of Runtime adobe Edge - >

    HTML code:

    < div id = 'Stage' class = "EDGE-70798230" > < / div > if I put it as it of course everthing works very well... I can put more with different IDs and they works perfectly...

    My problem:

    I don't know how much of this animation, I need... depends on my server give me in response... so I need to create them dynamically.

    I tried a lot of things:

    $("#newAnimation").append ("< div id ="Stage2"class ="EDGE-70798230"> < / div > ');    of course, with what happened... it is not even the symbols under stage... and not on the CSS...

    $(". Edge-70798230 #stage"). Clone () .appendTo ("#newAnimation");

    $("#newAnimation").children('#Stage').prop ('id', 'Stage2');   then more changes in css and just then I can see the animation, but it doesn't work... "play is not defind" when I try to run the animations...

    I know there is a function called createChildSymbol/createSymbolChild, but none of them does not work for me...

    I use jquery mobile... so to start the animation for example make $. Edge.Symbol.get ($("#stage")). Play();

    I tried to use the etc loadResources doesnt work too...

    someone has an idea of what I can do? Is it possible?

    Thus, a demo file to sym.createChildSymbol () and sym.createSymbolChild ().

    ==> create ChildSymbol SymbolChild.zip - Box

  • How to create a table of tree using a hash map

    Hi, let's say that I have given, I have a hash map as below

    HashMap < String, arraylist < String > > data = new HashMap < String, arraylist < String > > ();


    How to recover the data on the user interface of the page using the tree map

    view shud be somethug as
    APAC
    EUROPEAN UNION
    USA
    if I click on APAC it shud show me the list of countries in APAC, even for remaiing.

    can someone help me please in this requirement with a code example

    Thank you very much

    Hello

    you create a tree model, not a hash table. Take a look at this: http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/model/ChildPropertyTreeModel.html. If you have a hashMap then this will show you how to convert it to a template which can be used with a map of the tree

    Frank

  • How to create the new table by using the pertioned table

    Hello
    I use a partitioned table, now I want CPDR a new table with the same structure of my existing partitioned table.
    so can I use this syntax

    create the table abc_new as
    Select * from my_partitioned_table
    where 1 = 2;

    If I use this syntax, he would do the same my existing partitioned table structure?

    and

    When
    We use a syntax such as

    create the table abc_new as
    Select * from my_partitioned_table
    where 1 = 2;

    so he would also make the indexing on the new table if old table exists? If this isn't the case, then how can we create this indexing too at the time of execution of this syntax?


    regards

    N °

    Although the command would create a new table with the same column names and data types, it is NOT a partitioned table. You must explicitly specify the PARTITION BY clause and definitions of Partition when creating the table.

    Similarly, index definitions are not automatically copied. You must explicitly run the CREATE INDEX statements (which you can generate source using DBMS_METADATA. GET_DDL or by using any other tools/utilities).

    (However, if you use Export-Import - for example import to another schema, or to another database, it would create a table partitoned bearing the same name and with the same index definitions).

    Hemant K Collette

  • How to create a BPEL Process task using java code

    Hello

    I created a BPEL process (for creating task), in which my requirement is that I need to create a task based on some inputs and assign it to the user in partucular and then get out of this flow.

    earlier, I felt that I will use the human task activity. but when I use that task will be created in the same process and proceedings will be stuck on there until human intervention (the BPEL process waits for the result.).

    is it possible that I can use Java activity and create tasks from java code, 'I know how to assign a specific user task. Please tell me.
    Abhishek

    Published by: abhishek on April 25, 2011 12:42 AM

    Hi Abhishek
    1. you can try this alternative approach and it should work.

    2. basically, most of the BPEL process eventually auto generated Web services (.) WSDL). When we create a BPEL process, everything we do is give diagram of input, output schema and creates a bpel process with the default operation named as "process" in all the old versions as up to 11.2 SOA (and maybe before). BUT SOA 11.3 from, we can create a process BPEL, with our own WSDL and our own scheme. There is no restrictions like having only a single operation named 'process', etc.. In any case, what I mean is, each BPEL process ends up as a WebService, with entry and exit of the payloads of XSD.

    3. from the JDeveloper itself, locate the .wsdl for your BPEL process under the Workflow project. Create a new project of Proxy customer service Web and generate a customer for this wsdl Web service proxy. This will create you Service, Port and JAVA classes equivalent payload theoretically in your case taskpayload.xsd with these 4 items you have. Ignore the full blown the HumanTask which has all the system elements and attributes of a task of bpel. All you need is to undertake a task with your own payload data. Create a simple Client Java (EJB or Servlet later to make more flexible). In this Java client, retrieve the Service object in the proxy and port. Then instantiate the java class that represents the payload. Set 4 values you want and set the user name, etc. You may need some adjustments for the setting of the user. Then the port invoke otherwise (go your java object here).

    Sample code snippet
    prepare the message for BPEL of appeal; Define the fields that can not be null
    MyPayloadRequest myPayloadRequest = new MyPayloadRequest();
    myPayloadRequest.setInitiator("");
    myPayloadRequest.setTitle("");
    myPayloadRequest.setEmployeeName("");
    myPayloadRequest.setEmpContact("");

    web service client Get for BPEL receive point and call: first generate client proxy
    MyBPELPProcess_client_ep serviceClient = new MyBPELPProcess_client_ep();
    MyBPELPProces proxy = serviceClient.getNewMyBPELPProces_port ();
    proxy. Process (myPayloadRequest);

    Please note that you can also use the SOA workflow API and the Manager back call personalized for this first task classes. In this class, you can have the methods of the interceptor, which is called each time a task is initiated, saved, Submit, approve etc etc (all events essentially). This gives you access to all the objects in a workflow with full charge blown. So you can always get the data you pass above and in this custom class, the value of the user, date/time etc..

    It's just a different approach you can try.

    Thank you
    Ravi Jegga

  • How to create a master page when using Project7 models?

    Hello

    I use P7 templates to easily create a cool site. However, I would like to create, for example, the main menu only once and he used on each page or at least each page I want. I think it is a called a masterpage (?) where you can mark the parts to be reused on other pages.

    Is someone can you please tell me where I can find support, examples, tutorials on this? Or can someone tell me how to do this in a model of P7?

    Thanks in advance!

    Robert (Netherlands)


    You want to save your project page as DW model where your other pages of the site will be laid.  Or, you want to use Server-Side Includes (SSIs).

    Advice on when to use templates in DW and SSIs-
    http://www.Adobe.com/devnet/Dreamweaver/articles/ssi_lbi_template.html

    More information on DWTemplates-
    http://forums.Adobe.com/message/2032104#2032104

    More information on SSI-
    http://forums.Adobe.com/message/2112460#2112460

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Satellite Pro A200: How to create Dual boot; Vista & XP using the recovery CD

    I just bought a laptop Satellite Pro A200, which was supplied with the product for Vista and XP Recovery discs.
    The license specifically Vista also XP licenses.
    Can I set up a dual boot so that I can boot to Vista or XP? If so, how?

    I would also like a third boot, Red Hat Linux 9.
    Any comments?

    Hmmm. Usually it s possible to use two or more operating systems on the computer, but as far as I know the Toshiba Vista recovery CD formats whole disk when installing Vista and this will lead to the loss of the OS installed.
    I m not 100% sure on the recovery of the newest XP CD called RECON doesn t CD include an expert mode which allows to choose between the different partitions.

    So I guess that each use the recovery CD will format the HARD drive and erase the installed data. But of course, you can try to install the two BONES and to check if the restore XP CD allows to choose the second part of the installation of the OS.

    If it does not, it seems that you will need to an original XP from Microsoft CD or the original CD of Vista to use the two BONES.

    Best regards

  • How to create a better PDF for use in Adobe Acrobat Reader?

    Hello

    So I do a lot of PDF files.

    What I want to know is:

    1. What is the best system/software to create PDF files so that they are more user-friendly in AReader?

    2. I use Mac prefer Pages.

    3. If I use your method, people can still see the PDF file in one of the popular viewers (ie: Preview), right?

    THANKS for your great help!

    Hello

    Refer to this link:- Adobe Acrobat Pro DC: PDF Converter, convert PDF files from anywhere.

    Kind regards

    Christian

Maybe you are looking for

  • user account

    Hello! I'll have two admin accounts and wants to delete an account, what are the main steps to follow before you delete (is there a method outside the time machine), I meant just restore user and home folder of the user. Thank you!

  • What did you do for Firefox? I don't have the left arrow key or arrow - I can't type in the url box - Firefox has suddenly become USELESS!

    I clicked on 'Customize' as you suggest, am the arrows and the area url, you click on ok, and everything is back to what I had already. I know, except for a really quick fix, I have to go back to IE.

  • Size of 4 TB drive ReadyNAS Duo V2 Windows7

    I ReadyNAS Duo V2 equipped of two red disks WD 2 TB. Running on network with computers mainly to Win7. Works perfectly. I want to bring to disks of 2 x 4 TB, which are on the approved list. Question - NAS continued to work fully with these or will be

  • What is an alternative to the UWABR100 Wifi adapter?

    It seems that Sony has stopped the Wi - Fi adapter for the model 2011 Bravias incredulous. However, the link for the UWABR100 WiFi card to http://www.store.sony.com/products/27-UWABR100 says that it is no longer supported. Does anyone know if there i

  • Display folder size in Windows Explorer

    I try to get the size of the folder to display in the details pane in Windows Explorer (on Vista).  When I had Windows XP (Professional edition), it would appear that there, but not with Vista.  Under XP I could just click on a folder and the size of