module_data dynamic syntax

Hello

Does anyone know if there is a way or if there is a road map to allow dynamics in which the filtering on the syntax of module_data = "

Thus, for example:

{module_data resource = "bookings" version = "v3" fields = "id, disabled" where = "\ {'date': \ {'$gt': ' {USER SPECIFIED DATE\} \ ' \} \}" = "myData" collection "}

Really, this would extend the flexibility of the module.

Thank you

Dartois

Hello

I did a demo of this session MAX uncoference and fortunately he should do wrong. Create a page on your site called/query - user .html.

In the query - user .html place a single line containing the data of the module:

{module_data resource = "customers" version = "v3" fields = "id, firstName, lastNam}

e"skip ="0"limit ="10"where ="------{'email1.value': ' {{this.globals.get.userEmail}}'\} ' order = 'id' collection = "myData" "}}"

Now you can use this page as an API interface. During the max demo, I was collecting a frontend page's email address and an AJAX call:

GET/query - user .html? JSON = true & userEmail =

In response, you have a json with the available attributes of the user object. You can test it on Verify the existence of the user via the API.

In addition, take a look at the screenshots:

If all goes well, this should solve your use case.

Kind regards

Radu

Tags: Business Catalyst

Similar Questions

  • VERY dynamic syntax

    Hello

    Suppose I have the following configuration:

    [Bindabel] public var language: String = "biography_en";

    ...

    somewhere in the code, I want to use this variable as follows:

    updateVO. language content =; This obviously won't work.

    How is the correct syntax for this action, I know there are OJEN but I lost it :/

    Thank you!

    Marc

    You cannot use the syntax to point, but you can use the hook syntax to achieve the same thing:

    updateVO [language] = content;

    It should work.

  • Dynamic rule in a service query syntax

    Hello

    We are in the early stages of the addition of our Foglight services servers. Our servers follow a fairly standard naming scheme, so adding servers rules such as "name like ' maintain the label removed by privacy policy > '" was not too difficult.

    However, I was wondering if there are documents anywhere, what kind of syntax, I can use in a query to identify the hosts to dynamically in a service?

    Once I've done ' name as ' maintain the label removed by privacy policy > ' "which was not too hard, but I would be a little more creative. For example,.

    detail.topologyTypeName = "VMWVirtualMachine" & os.longName like '% Windows '. I got this example from the forums, but I would never have been able to do that on my own. How can I find out what objects and types can I use? Is there a guide anywhere?

    A rule I want to create means "include all hosts that are not in these specific services. I know there is a way to do this, but I don't know where to start with the syntax.

    You can provide all the help is appreciated.

    Thank you

    Tony

    I looked around in the data browser and came to the following query and if all goes well is close to what you are looking for.

    Scope: host

    QueryName: HostsNotInAService

    QuerySyntax:

    parents.topologyTypeName not like 'FSMCategory' and parents.topologyTypeName not like 'FSMChildService '.

    Best regards, Bart

  • Creating HTML dynamically in JS tags for my Panel (using the syntax)

    I am tryinng to dynamically generate a user interface for my Panel. Create tags work very well with the code below - the problem is the syntax for the background image.

    // Construct HTML tags dynamically and append to content container
    for (var i = 0; i < myList.length; i++){
        var html = "";
        html += "<button class='lol'>";
        html += "<span class='lol2' style='background-image: url(" + myList[i].icon + ")'></span>"; // Syntax broken here
        html += "<p class='lol3'>" + myList[i].text + "</p>";
        html += "</button>";
        $("#content").append(html);
    }
    

    The tags are generated fine - but I don't get the property background-image for them - probably because the url() attribute syntax is broken. Also important to mention is that myList [i] icon contains a string - so it's not a data problem.

    The url of the background image is not a string itself? Try adding additional quotes in there:

    var html = "";
    

    Had to get away from them otherwise is a mess.

    Hope this helps,

    Davide Barranca

  • The dynamic LOV PL/SQL syntax help

    Hello

    I am trying to create a dynamic lov pl/sql Oracle Apex 3.2 on 11 g. I'm having some trouble with the syntax of the statements below and I would be grateful for any suggestion.
    DECLARE
    BEGIN
    
    IF :p3_current_a_workshop != 0 THEN
    RETURN
    'select distinct workshop_title ||':  '  || presenter_name ||'    $'|| workshop_fee display_value, workshop_id return_value 
    from WORKSHOP
    where session_time = 'A'
    and workshop_status = 'Open'
    or workshop_id = :p3_current_a_workshop
    order by 1';
    
    ELSE
    RETURN
    'select distinct workshop_title ||':  '  || presenter_name ||'    $'|| workshop_fee display_value, workshop_id return_value 
    from WORKSHOP
    where session_time = 'A'
    and workshop_status = 'Open'
    order by 1';
    
    END IF;
    EXCEPTION
            WHEN OTHERS THEN
                HTP.PRN('ERROR'||SQLERRM);          
    END;
    I'm trying to shape the code above out of the example given by apex:
    A function that returns a SQL query with two columns:
    
    IF :MY_ITEM='10' THEN
      RETURN 
      'SELECT ename, empno 
    FROM  emp 
    WHERE depno = 10 
    ORDER BY 1';
    ELSE
      RETURN 
      'SELECT ename, empno 
    FROM emp 
    WHERE depno = :my_item 
    ORDER BY 1';
    END IF;
    ~ Andrew Schultz

    How do you use this procedure?

    You can create and example on apex.oracle.com?

    Lev

    Published by: the January 12, 2011 14:10

  • dynamic paths, syntax to point

    I'm using Flash 8 and creating a dynamic XML driven menu.

    I can't for the life of understand me the syntax to make a 2 dimensional path to a movieclip.

    I can make reference to a movieclip dynamically with: _root ["main" + i].label.text
    But how can I make reference to a movieclip like this:

    _root.main1.subBut1_1.label.text

    Where 'main1' AND 'subBut1_1' are written in a dynamic way.

    I tried _root ["main" + i] ["subBut" + i + "_" + t] and _root ["main" + i]. ["subBut" + i + "_" + t], no dice. I think it's pretty common to try to do something like that.

    It works, but here is the solution

    _root ["main" + i] ["subBut" + i + "_" + t].label.text = 'Test ';

    I'm referencing 'subBut', when clearly I appointed the new instance: "sub".

    _root ["main" + i] .attachMovie ('subBut', 'sub' + i + '_' + t, this.getNextHighestDepth (), {_x:0, _y:ySub});})

    My mistake * blush *.

  • dynamic action - hide values if the element in the array?  syntax error (I think).

    Hello world

    I have an application page that contains a lov (gears).  If a particular device is selected, I want to hide other fields.   The value of the machine could be one of many.  I created a dynamic action using javascript... but I'm really not familiar with javascript and can't seem to make it work.   Note, there is a line below commented that compared to gear to the value of "500".  This line works and mask fields... but I need to make it work for all possible values.  Any help would be really appreciated!

    Thank you, Karen

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If ($v (this) == '500')
    If ($.inArray ($v (this), $no_size)) >-1
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }

    });

    This seems to do the trick.

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If (no_size.indexOf ($v (this)) > - 1).
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }
    on the other
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Show();
    $(rowTR).find(".) Stretch"). Show();
    $(rowTR).find(".) Mesh"). Show();
    }
    });

  • Help with Javascript syntax for dynamic header / footer...

    Hello-

    I am very new to JavaScript, but I managed to frankenstein two snippets of code that work well individually, but I can't understand how to make them work together. I am applying a dynamic header and footer to a large number of documents using the batch. Here are two extracts that work, and if someone could help me to combine them, I would be very grateful!

    for (var pageNumber = 0; pageNumber < this.numPages; pageNumber ++) {var DateStamp = this.addField ("DateStamp", "text", pageNumber, [10, 15, 600, 0]);} DateStamp.textSize = 12; DateStamp.alignment = 'center'; DateStamp.textColor = color.gray; }

    this.setAction ("WillPrint", "this.getField('DateStamp').value = \"THIS DOCUMENT IS VALID FOR 24 HOURS from DATE of PRINTING:-"+ util.printd (" \"mm/dd/yyyy hh: mm tt\", new Date()) "");

    for (var pageNumber = 0; pageNumber < this.numPages; pageNumber ++) {var FilePath = this.addField ("path", "text", pageNumber, [10, 782, 600, 767]);} FilePath.textSize = 10; FilePath.alignment = "left"; FilePath.textColor = color.gray; }

    this.setAction ("WillPrint", "this.getField('FilePath').value = \"File path: \ "+ this.path");

    Thanks in advance for any help!

    The only problem is that your second order setAction is overwhelming the first. Simply combine it with a single command, as follows:

    this.setAction("WillPrint", "this.getField('DateStamp').value = \"THIS DOCUMENT IS VALID FOR 24 HOURS FROM PRINT DATE: \" + util.printd(\"mm/dd/yyyy  hh:MM tt\",new Date());  this.getField('FilePath').value = \"File Path: \" + this.path;");
    
  • Helps with the syntax of dynamic sql statements

    Hi all
    How can I pass the value of the result of my dynamic select statement to a Ref Cursor?
    I try the following statement but does not work, I get this error:
    ORA-00932: inconsistent data types: expected - was - ORA-06512: at
    Procedure getItems(v_first In number, v_second In Number, arg_Cursor IN OUT CUSTOM_REF_CURSOR) is
         sqlString varchar(3000);
         Begin
           sqlString := 'select* from bla where o.arg_1 = :1 and arg_2 = :2'; 
       
           execute immediate sqlString 
           into arg_Cursor
           using v_first, v_second;
       End getItems;
    Any ideas?
    Thank you

    Johnny
    PROCEDURE getitems (v_first IN NUMBER, v_second IN NUMBER, arg_cursor IN OUT sys_refcursor)
    IS
      sqlstring   VARCHAR (3000);
    BEGIN
      sqlstring := 'select* from bla where o.arg_1 = :1 and arg_2 = :2';
    
      OPEN arg_cursor FOR sqlstring USING v_first, v_second;
    END getitems;
    
  • Syntax to update dynamic in yew expression operator

     CREATE or REPLACE PROCEDURE First(
    operator IN VARCHAR2
    )
    AS
    x NUMBER := 0;
    
    BEGIN
        LOOP
          x := x + 1;
    --IF x > 3 THEN
    IF x 'operator' 3 THEN     ------What will be syntax.
          EXIT;
    END IF;
    END loop;
    END;
    /

    I want to build a House of wax paper of fire.
    Please advice!

  • movieclip with dynamic child name syntax

    How can I call a dynamic children mc property in a static parent mc?

    For example:

    a clip parent with the name of the instance 'parentMC' has four clips of the child including instance names "mc1", "mc2", "mc3", 'mc4.

    var childArray:Array is ["mc1", "mc2", "mc3", 'mc4'];.

    for (var a: uint = 0; has < childArray.length; a ++) {}

    parentMC.MovieClip(childArray[a]).x = 150;

    }

    Thanks for your help!

    Hi, if you assing a name for a movie clip running for an mc of the child.

    You can then use getChildbyName ("movieclip name");

    as

    parentMovieClip.getChildByname("movie_clip_name").x

    'name of the movie clip' will be a string that was assigned at the time of the creation of a child

  • Dynamic MC Layered syntax for loop FOR

    what I'm trying to do is to access the data of several clips from movies, that are inside several other video clips:

    MC1.insideMC._visible = false (which works, but is not dynamic)

    but dynamically with a loop FOR I tried:

    For (ball = 1; ball < 5; ball ++) {}
    "MC" + bullet.insideMC1._visible = false (it does not) ".
    }

    Does anyone know the rating by point or another way to do this?  I'm stuck

    To have interpreted as instance names string values, you use the notation of support/table...

    for (ball = 1; ball)<5;>
    This ["MC" + ball].insideMC1._visible = false;

    }

  • using the dynamic SQL syntax

    I am trying to create a dynamic sql to execute the following statement:

    create the table mytbl_20100901 in select * from matbl double;

    When I try the following error I
    ORA-06550: line 6, column 10:
    PLS-00103: encountered the symbol "SELECT" at the expected in the following way:

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;
    declare
    sql_cmd varchar2 (1000);

    Start

    sql_cmd: = select "create table mytbl_ | To_char (sysdate, 'YYYYMMDD') | ' in select * from matbl ' double.

    immediately run sql_cmd;

    end;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    How to fix the sql_cmd assignment statement?

    Thank you.

    Hello

    user1035690 wrote:
    I am trying to create a dynamic sql to execute the following statement:

    create the table mytbl_20100901 in select * from matbl double;

    When I try the following error I
    ORA-06550: line 6, column 10:
    PLS-00103: encountered the symbol "SELECT" at the expected in the following way:

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;
    declare
    sql_cmd varchar2 (1000);

    Start

    sql_cmd: = select "create table mytbl_ | To_char (sysdate, 'YYYYMMDD') | ' in select * from matbl ' double.

    immediately run sql_cmd;

    end;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    How to fix the sql_cmd assignment statement?

    Thank you.

    The dual table is not necessary a lot in PL/SQL.
    You can simply say:

    sql_cmd := 'create table mytbl_' || TO_CHAR(sysdate, 'YYYYMMDD') || ' as select * from mytbl';
    dbms_output.put_line (sql_cmd || ' <= sql_cmd');
    -- EXECUTE IMMEDIATE sql_cmd;
    

    During the development of the dynamic SQL statements, I suggest that you post the command rather than run it first.
    When it seems correct, then a comment instructions EXECUTE IMMEDIATE.
    Before the Production code, remove or comment the call to out_line.

  • AS2 syntax and dynamic variable names

    Hi all

    Try to learn AS2 and hoping someone can help me by explaining the problems with the following code example, and what would be needed to make it work (i.e. to create dynamic variables and some clips from a table).

    Thanks for your time!

    :

  • Syntax for dropdown dynamic form

    I have a simple database structure with a table for the places and events.

    I'm putting a selection drop down in my form to add a new event that lists sites and inserts the VenueID in a field in the events table.

    I've got this, which I think is pretty close, but its not to shoot anything through:

    < select name = "VenueID" >

    <? PHP

    $sql = "SELECT VenueID, meeting place OF the ORDER of the locations BY the CSA place";

    $result = mysql_query ($sql);

    While ($row = {mysql_fetch_array ($result))}

    echo "' < option value =" ". $row ["VenueID"]. « « > ». $row ['place']. "< / option >";

    }

    ? >

    < / select >

    Thanks for the pointers.

    Just to say that I have now works in explicitly referencing the DB still once, i.e. by adding:

    mysql_connect ('localhost', 'username', 'password');

    @mysql_select_db ('database');

    A connection file was referenced in the header, but must need that too.

Maybe you are looking for

  • How to fix cracked iPhone 6s is more the camera lens?

    I have an iPhone more rose gold 6s and I dropped and cracked the camera lens. I was wondering how much it would cost to repair.

  • Impossible to update my itunes

    When I try to update my itunes I get the following message is displayed: Cannot install the updated "iTunes." The file 'iTunesX.pkg' could not be found on the server "swcdn.apple.com". This is preview of my computer. Presentation of the material: Mod

  • Cannot restore my Satellite C850

    Hello I tried to install Windows 7 on my new laptop (instead of the 8 of Windows it came with) using a DVD to boot. First of all, I had to disable Secure Boot, then changed to CSM Boot UEFI boot to get the laptop to recognize the DVD (using advice fo

  • Where to find driver for Toshiba rfbus bluetooth dongle

    Hello I wonder if anyone knows where I can download the drivers for toshiba rfbus bluetooth dongle driver.

  • DDR4 8 does not work

    Hey, I have a E5-575 - 54-6 i5 6 GB ddr 4 2133 mhz pc 17000, Now, I try to upgrade 6 GB to 8 GB with the c