PL/SQL dynamic content

Capture.jpg

I use APEX 4.2.3 on Oracle 11 g R2.

On my page, I have an IR base I have a column value up as a link to a URL that calls my function javascript in him passing a value of the report line.  Now, I want to display my modal window to display the data in the database for the value that was passed.  The pain I feel is the value of DOM in session state while my content area of pl/sql can be displayed.  The content of pl/sql is just a query that displays data in a tabular presentation specialist.  There are too many values to display in a report the reason for this type of area.  How can I get my DOM value in session state?  My javscript function is stuck.

Thanks in advance.

scottm wrote:

Once again, my IR, a user clicks on the link and the modal display detailed information about the line that has been selected.  I can't really give a lot more other that my query will return just one row of data that will contain 34 columns.  If I set it up as a classic report, it works perfectly, but my users want not displayed like this because they will have to scroll to see all the content.  So my specialized table is really a series of tables stacked with 4 columns each.  I keep thinking of a way to make a report model to view it as I want to, but do not find a way to do it again.  I tried the model "attribute value pairs", but it did not fit on the page completely.  The image below is what I'm shooting.

This layout of the table can be created in a custom report named column model, convert query result of single line into several lines of an HTML table. Something like this:

Front of the lines


Model of line 1

  
...

and so on

After the lines

Plant NamePlant TypePlant OwnerYear Built
#PLANT_NAME##PLANT_TYPE##PLANT_OWNER##YEAR_BUILT#
Vessel LengthDisposal TypeEmpty DisplacementOcean Certified
#VESSEL_LENGTH##DISPOSAL_TYPE##EMPTY_DISPLACEMENT##OCEAN_CERTFIED#

However, in my opinion, this is limit his use of a table, and I agree with you that the attribute/value pairs (i.e. a list of description) is the correct HTML representation for this data. Assuming suitable browser support, the report can use the model of attribute/value pairs, and then enroll in the space required by displaying it on several columns using a CSS3 multi-column layout.

Tags: Database

Similar Questions

  • APEX 5 carousel with dynamic content

    Hi all

    is possibile creare a region carousel with only a subregion that render dynamic content?

    Sergio

    JoL says:

    is possibile creare a region carousel with only a subregion that render dynamic content?

    The carousel plugin can be reused for dynamic content refine the model of region of Carousel container and using a custom report template that renders each line in a report under a Pseudo-sous region, as in this demonstration.

    1. create a copy of the model region carousel called Carousel report containercontainer.

    2. change lines 14 to 18 of the model so that the #BODY# substitution string is contained in div.t-Region-carouselRegions :

    
    

    3 create a report of a named column model custom called Carousel Dynamic Content.

    4. define the structure required for each row in the dynamic content in model 1.

    • Lines 1 & 17 must reproduce the structure of the wrapper in the definition of the model in the model region of Carousel container subreqion definition. The source of report query must include a unique ID column for each row to be used in the SR_* value of the attribute ID.
    • 2 & 16 are based on the CSS source code classes and region of the subregions carousel on page 1200 of the universal theme Sample Application. The demo dm-ColorBlock class used in the sample is replaced by the custom carousel-content class that can be used to apply a custom style. The u-Color and h200 classes are defined in the theme and kernel of the APEX CSS and to control the color and height of Pseudo-sous-regions carousel respectively. (These classes are not documented you have to experiment to suit your needs.)
    • The code necessary to structure your content goes between these wrappers.

    5. create a region of classical report by using a SQL query that retrieves the dynamic content. This must include: a unique ID value for use in the ID of the elements attributes wrapper Pseudo-sous-region; the data values for the display; and all class information used to dynamically control the appearance of the Pseudo-sous regions.

    6 disable paging and partial-page refresh in the report attributes. and the number of lines and number of lines Maximum values that are appropriate for the data.

    7. some custom styles is likely to be required on the carousel-content element. I used the Inline CSS property page to apply padding to place content in the area of the carousel:

    .carousel-content {
      padding: 1em 3em;
    }
    
  • How to declare variables in PL/SQL (dynamically)

    Hello

    Please inform me how can I declare variables in PL/SQL dynamically (I want used in other projects). I tried the following code, but this error

    SQL > /.
    declare
    *
    ERROR on line 1:
    ORA-06550: line 1, column 74:
    PL/SQL: ORA-00933: SQL not correctly completed command
    ORA-06550: line 1, column 35:
    PL/SQL: SQL statement ignored
    ORA-06512: at line 10

    -----------------------------------------
    This is the code.
    declare
    v_temp varchar2 (300);
    x varchar2 (20);
    y varchar2 (20);

    Start
    BBB: = "X varchar2 (20);"
    y : = '1' ;

    run immediately 'declare '.
    || v_temp
    || "start."
    || 'Select name '.
    || "Ali where id =: yy '.
    || ' x using the ' | There
    || ' ; '
    || ' end; ';
    end;

    concerning
    WAel

    user3098640 wrote:
    Hi, thanks a lot for all. OK I'll show you that I want to achieve. So please help me
    refer to the following table it consist of four columns and three rows.
    I only want to show the column that has a value of ZERO : like the following query

    Select REC1 IMAGE_VALUE where corr = 'x' and rec1 = '1';

    Do you want that ZERO or '1 '? Contradict you yourself.

    Good to see you're requirements are clear.

    in this case are easy, but in my case the columns may be more than 100 columns (this is will automatically create - already made the number of columns is not fixed but it start by REC1 REC2, REC3, REC4... etc)
    the question is How can I DISPLAY the columns containing only '1' for specfic "corr" is X, Y or Z in PL - SQL

    Why you have a table that automatically creates with an unknown number of columns?
    It of very bad database design and get the basics of the design by the window completely.

    When you say 'Show' to what it means? SQL and PL/SQL "shows" nothing, because it has no user interface. It simply processes the data, and if these data are not in a known structure at the time where the application has been designed, and all code must be dynamic to try to deal with it. It is simply false in many ways.

    A better structure would be something like this...

    SQL> create table image_value (corr varchar2(20), rec varchar2(10), rec_val varchar2(20));
    
    Table created.
    
    SQL>
    SQL> insert into image_value (corr, rec, rec_val) values ('X','REC1','1');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('X','REC2','0');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('X','REC3','0');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('Y','REC1','0');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('Y','REC2','1');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('Y','REC3','1');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('Z','REC1','1');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('Z','REC2','0');
    
    1 row created.
    
    SQL> insert into image_value (corr, rec, rec_val) values ('Z','REC3','1');
    
    1 row created.
    
    SQL>
    SQL> commit;
    
    Commit complete.
    
    SQL>
    SQL> with r as (select '&Required_Corr' as req_corr from dual)
      2  --
      3  -- end of input
      4  --
      5  select corr
      6        ,max(decode(rn,1,rec)) as c1
      7        ,max(decode(rn,2,rec)) as c2
      8        ,max(decode(rn,3,rec)) as c3
      9        ,max(decode(rn,4,rec)) as c4
     10        ,max(decode(rn,5,rec)) as c5
     11        ,max(decode(rn,6,rec)) as c6
     12        ,max(decode(rn,7,rec)) as c7
     13        ,max(decode(rn,8,rec)) as c8
     14        ,max(decode(rn,9,rec)) as c9
     15        ,max(decode(rn,10,rec)) as c10
     16  from (
     17        select corr, rec, row_number() over (partition by corr order by rec) as rn
     18        from   image_value, r
     19        where  corr = req_corr
     20        and    rec_val = '1'
     21       )
     22  group by corr;
    Enter value for required_corr: X
    old   1: with r as (select '&Required_Corr' as req_corr from dual)
    new   1: with r as (select 'X' as req_corr from dual)
    
    CORR                 C1         C2         C3         C4         C5         C6         C7         C8         C9         C10
    -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    X                    REC1
    
    SQL> /
    Enter value for required_corr: Y
    old   1: with r as (select '&Required_Corr' as req_corr from dual)
    new   1: with r as (select 'Y' as req_corr from dual)
    
    CORR                 C1         C2         C3         C4         C5         C6         C7         C8         C9         C10
    -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    Y                    REC2       REC3
    
    SQL> /
    Enter value for required_corr: Z
    old   1: with r as (select '&Required_Corr' as req_corr from dual)
    new   1: with r as (select 'Z' as req_corr from dual)
    
    CORR                 C1         C2         C3         C4         C5         C6         C7         C8         C9         C10
    -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    Z                    REC1       REC3
    
    SQL>
    

    And you support the maximum number of values REC you expect.

    Other than that, what you're really talking is a reporting requirement that requires that the data to be read once before, it is then processed and only the required data is queried with a second query. This can be done in PL/SQL using DBMS_SQL (or versions using EXECUTE IMMEDIATE), but really, that should be done by tools that are designed to query data then format and place based on the content of the reporting data.

    Yet, you have not really explained why you are trying to do. It's alright saying you are trying to achieve, but which does not justify as being the right way to do things. What you have shown us so far, is not how to design a database or application code.

  • Dynamic content in the navigation bar

    How can I keep a dynamic content in the navigation bar?
    In the section "Definition" of the model of breadcrumb in the region "before first", I need to have dynamic content.
    Another application, where the flow of the page is not finalized yet need access to the Page of the APEX.
    If the navigation bar will be like:
    You are here: Other_Application_link_1 > Other_Application_link_2 > Other_Application_link_3 > APEX_Page_1... so now...

    I will get the entries in a column in DB. I thought to write a PL/SQL shortcut, then it using "SHORTCUT_NAME" in the region "before first' from the navigation bar model. But the shortcut does not work in the section definition of breadcrumb.
    I wonder if there is a work around that.
    Any hint is appreciated.

    Thank you
    Booth.

    Hi Math,

    the text (label) of a breadcrumb can be dynamic, simply using page or application elements in the breadcrumb tag.

    for example: "Person & P400_PERSON_NAME."

    brgds,
    Peter

    Blog: http://www.oracle-and-apex.com

  • How to add dynamic content?

    Hello

    How can I add dynamic content to my emails in eloqua?

    Thank you

    POOJA

    Hi Pooja,

    You can add dynamic content to be sent by two methods: -.

    1. You can write this code directly-"". ""                                              By this method, you can add dynamic content code offline
    2. Otherwise, you can co to eloqua code. When you expand the e-mail on the far left, you can get an option "Dynamic content" click on it, a black drop-down list will open type name of your content dynamic and this will directly add dynamic content in your code.

    Kind regards

    eDynamic Experts Eloqua

  • Extensions of floating panels - adding dynamic content

    I work on the Dreamweaver extension and want to create a new floating panels. I am able to create...

    But, I have a (small) problem. Is it possible to add content dynamically?

    For example, let's say I have an HTML page containing a table with a variable number of columns. When the user select the node of the table, I want my extended floating panel automatically adds the column names (based on the thead element > tr > th data) as the new COLUMN NAME < p > < /p >.

    I have (yet) how to obtain the name of the columns... I just need to know if it is possible to add dynamic content in a floating panel and if it is possible, how?

    Thanks for your help!

    Just find the workaround... Instead of adding content, you can use object.innerHTML to set the html code. You can not add, but can completely rewrite the data in the DOM extension

    Thank you for all your help

  • What is the best way to access the redirect link Eloqua once he entered the dynamic content?

    I appriciate if someone can show how. This is not about the withdrawal and the re-inersting, just change it.

    Thank you

    Amit Pandya

    Thanks Peter,.

    Finally, I have found. Looked at the link id in a dynamic content, searched by linked id, then was able to change the two follow-up and redirect URL by using Setup-> links to redirect.

    Thank you

    Amit Pandya

  • REST API: How to create e-mail/landing page with static/dynamic content?

    With the REST API, it seems that you can create/update the contents of an e-mail or a landing page by specifying html with the type "RawHtmlContent". How it works when this e-mail or a landing page includes a shared or dynamic content? What is the recommended method to create or update an e-mail/landing page and add a new shared or dynamic, content or update the "reference"?

    Unfortunately this is not currently supported by our API.  However, we are building a new point extension called content Cloud that can solve your use case.

  • Reports on activity of dynamic content - anyone done this?

    I built a multilingual campaign using dynamic content in boxes this key out of the values of different products. Out of the box, Eloqua can measure Dynamics framed together.  So I can't say how many times these items in the sidebar were clicked.

    Someone at - there a work around?  You may be using a third-party tool?

    Dynamic content.jpg

    You could implement of query strings in Eloqua and then use these query strings to differentiate the links in the sidebar. There is a reporting query string that would give you visibility into the metrics.

    I'm curious if anyone has any other suggestions.

    Mindy

  • Is it possible to view the code on dynamic content rules?

    We have problems with a bug that does not allow to fill us dynamic data content in a custom data object, and I wanted to try to play with the code. Is access to the code in the rules anyway? We can access the code of the content itself.

    Thank you!

    Hi Brittany,

    We have not documented these end points, but you can search and retrieve dynamic content sections using the following endpoint:

    • GET: / assets/dynamicContents? depth = {depth} & count = {number} & page = {page} & search = {search} & orderBy = {orderBy} & lastUpdatedAt = {lastUpdatedAt}

    The response to this appeal is as follows:

    {

    "items":]

    {

    'type': "DynamicContent"

    « id » : « 1 »,

    'converted': '1219180658 ',.

    "depth':"full. "

    "description": ","

    "folderId": "1418",.

    "name': 'sample product Promotions."

    "updatedAt": "1321729405",

    "updatedBy": "310"

    'defaultContentSection': {}

    "type': 'ContentSection."

    'id': '21 ',.

    'converted': '1289253558 ',.

    "createdBy": "12."

    "depth':"full. "

    "folderId": "320"

    "name': 'rule by default."

    "updatedAt": "1343658302",

    "updatedBy": "234"

    ""contentHtml":"

    example of content<\>«»

    "contentText": "our sample seminars cover all of the United States...". »,

    'forms': [],.

    "links":]

    {

    'type': 'hyperlink ',.

    « id » : « -1",

    "name': 'check now."

    'href': "" http:///\/ www.eloqua.com?elq=recipientid<\ pan="">& elqCampaignId =".

    }

    ],

    "images": [],.

    "scope": "local."

    'size': {}

    'type': 'Size',

    'width': '0',

    'height': '0 '.

    }

    },

    'rules':]

    {

    'type': 'DynamicContentRule ',.

    « id » : « 1 »,

    'contentSection': {}

    "type': 'ContentSection."

    « id » : « 8 »,

    'converted': '1287346933 ',.

    "createdBy": "9."

    "depth':"full. "

    "folderId": "320"

    "name': 'sample content."

    "updatedAt": "1323263825",

    "updatedBy": "51",.

    ""contentHtml":"

    example of content<\>«»

    "contentText": "example text."

    'forms': [],.

    "links":]

    {

    'type': 'hyperlink ',.

    « id » : « -1",

    "name':"survey. "

    'href': ' "http:///\/app.en25.com\/e\/er.aspx?s=1002&lid=704&elq=recipientid<\ pan="">".

    }

    ],

    "images": [],.

    "scope": "local."

    'size': {}

    'type': 'Size',

    'width': '0',

    'height': '0 '.

    }

    },

    'criteria':]

    {

    'type': 'ContactFieldCriterion ',.

    « id » : « 1 »,

    'condition': {}

    'type': 'TextValueCondition ',.

    "operator':"equal. "

    'value ':

    },

    "fieldId": "100047"

    }

    ],

    "depth':"full. "

    'Déclaration': '1 '.

    },

    ...

    ]

    }

    ],

    "page": 1.

    "pageSize": 1.

    'total': 100

    }

    Please note that this endpoint can change and we will seek to have a more complete documentation about this.

    Thank you

    Fred

  • Access and updating of dynamic content for email

    I created an email template. Now I want to access and update any part (Shared Content / dynamic content) of this model.

    How can I achieve that?

    Thank you

    Avinash

    See Eloqua REST API - create and manage Emails and REST API - Documentation for kernel objects for more information on access to emails via the REST API.

  • Monitoring of dynamic content

    Hello

    How can I determine how many people were sent to each version of dynamic content?  SO, if I build a piece of the DC with a default rule, rule 1, rule 2 and then send it to my segment, how do I determine who/how many people in my area received by default, vs how many received rule 1, and how much the rule 2.  I was not able to find this data anywhere.

    I have been able to track clicks using query strings, but this does not help with "submitted" or other metrics such as open note and click rate.  I also have the custom parser building license, so if this is useful, please let me know.

    I think the Visual report clicks does not work with dynamic content.

    But in E9, there is an option to search for what Jessica is trying, it is called: ventilation content-driven activity by E-mail (in the report Console).

    This shows how many people have been sent to each version of dynamic content in an email.

    It is not good to learn that this option does not exist in the E10.

  • Dynamic content of name change rules?

    Is it possible to rename the rules in the dynamic content?

    dynamic.gif

    because if there is, I sure can't understand.

    Thank you.

    No, not yet at least. I remember at the time it was something that eloqua would change, but I guess he has not materialized yet. I find it quite frustrating as well.

  • Can you use a dynamic content in a subject line?

    I know that you can use the field blends in the subject line, but is it possible to use dynamic content there as well? If so, pointers would be greatly appreciated.

    Thank you.

    Great plan - and I see what you mean!

    It's a little complicated, because you cannot add to ADC (which would achieve exactly that), but... as I said, it is certainly possible.

    If it was me, so I would

    1. create a new custom Contact field and name 'Bulletin of the subject' (for example).

    2. create a small program Builder program, which uses the connector of cloud to concatenate a String to merge the values. In this case, "[first name], here. I'd write that concatenated value in the field "Subject of the bulletin" Contact that I created in step 1.

    3. create a new fusion of field, based on the Contact field 'Topic newsletter', with the default value is "Here".

    In this way, when I add the merge on this subject field, I find myself with"[fusion of subject field Newsletter] is your email. If you know my name, it's in the fusion of the "Subject of the Newsletter" field as "Leigh, here ' (thanks to this string concatenate Cloud Connector); If you do not know my name, by default on the merger of field said 'Here'... so I find myself with"Leigh, here is your email" or"this is your email" source of bold italics of the merger .

    Still, a little complicated, but it will do the trick!

  • Priority of the rules with dynamic content

    Does anyone know how the rules have priority in dynamic content?

    For example, I have three rules: content, content for designers and content developers default. If a person is designer and developer, I want to send them the content developer.

    Any ideas?

    -If anyone knows how to add names to the rules too, would be great. They are currently all record as "rule 1" "rule 2"... ".

    Thank you!

    The engine follows a short-circuit evaluation. It begins with rule 1, then goes to rule 2, etc.. The first rule is a football match is used. If no rule is met, then the default value is provided.

    I agree, it would be nice if the rules have been appointed. Please create it if it is not already there in the exchange of ideas!

    Aaron.

Maybe you are looking for