Display Contributor Regions dynamically
We have a site that we are starting to provide different content for different languages. One of the solutions that we came up with is to provide multiple contributable regions on the layouts. i.e. region for English, Japanaese, Chinese Traditional, etc... In the layout, we have a place to select the desired language and set a cookie.
All of the layouts have this code:
<!--$if ssLanguage eq 2-->
<!--SS_BEGIN_ELEMENT(region1_element2)--><!--$ssIncludeXml(SS_DATAFILE,region1_element2 & "/node()")--><!--SS_END_ELEMENT(region1_element2)-->
<!--$else-->
<!--SS_BEGIN_ELEMENT(region1_element1)--><!--$ssIncludeXml(SS_DATAFILE,region1_element1 & "/node()")--><!--SS_END_ELEMENT(region1_element1)-->
<!--$endif-->
Basically this displays element 2 if the cookie is set to 2, otherwise it displays element 1
This piece works fine. However, we have a problem. If the cookie is set to 2, but the page the user goes to does not have content for element 2, then the page is displayed blank.
Can anyonone think of a way to check the contents of element 2 and if it is null, then fall thru and display element 1. In other words:
<!--$if ssLanguage eq 2--> AND SS_DATAFILE,region1_element2 is not null-->
<!--SS_BEGIN_ELEMENT(region1_element2)--><!--$ssIncludeXml(SS_DATAFILE,region1_element2 & "/node()")--><!--SS_END_ELEMENT(region1_element2)-->
<!--$else-->
<!--SS_BEGIN_ELEMENT(region1_element1)--><!--$ssIncludeXml(SS_DATAFILE,region1_element1 & "/node()")--><!--SS_END_ELEMENT(region1_element1)-->
<!--$endif-->
Thanks ahead of time.
Edited by: user9181083 on Sep 22, 2010 2:44 PM
<!--$lang2=ssIncludeXml(SS_DATAFILE,region1_element2 & "/node()")-->
<!--$if ssLanguage eq 2 and (strLength(lang2) gt 0)-->
<!--SS_BEGIN_ELEMENT(region1_element2)--><!--$lang2--><!--SS_END_ELEMENT(region1_element2)-->
<!--$else-->
<!--SS_BEGIN_ELEMENT(region1_element1)--><!--$ssIncludeXml(SS_DATAFILE,region1_element1 & "/node()")--><!--SS_END_ELEMENT(region1_element1)-->
<!--$endif-->
That should pretty much do it - assuming that the empty element returns a zero length string. If it does return something else then just check for that.
Tim
Similar Messages
-
Need to display COlumn headers dynamically in ALG Grid
Hello,
I need to display column headers dynamically in alv grid Display with its corresponding value.
Column headers should be picked from a field in Final Internal table and its corresponding field will also need to pick from the same table.
T_final... Suppose Field STCTS - (To pick coulmn headers)
CCNGN - (To pick appropriate value for that column)
Can anybody explain me how i can pass these values to ALV Grid using
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = Y_I_FCAT
IMPORTING
EP_TABLE = DY_TABLE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Any suggestions will be appreciated....
Regards,
KittuHi,
Go thru this link, and the code of Mr.Dev Parbutteea
Re: Probelm with Using Field Symbol in FM
thanks
Mahesh -
Is it feasible to set the rows displayed per page dynamically?
Hi,
Is it feasible to set the rows displayed per page dynamically in the table view result as per the user wants eg : the user wishes to see only 25 records or all the records?
Also what is the maximum limit of rows that can be fetched as per the entry in instanceconfig.xml :
<ResultRowLimit>65000</ResultRowLimit>
Is there a limit for number of rows being displayed in table view?
thanks
RishabhSee this
How to increase default number of rows dspalyed ?
This is your thread only... -
Displaying images in dynamic text fields
Hi, I am having some difficulty getting my images to display
in a dynamic text field. The images are linked from a txt file with
the <img src=""> tag however they are not showing up in the
text area. The rest of the html are rendering fine except the image
tag. My example online is here:
www.supernaturalmedia.com.
Here is the code I used in Flash:
var style_sheet = new TextField.StyleSheet();
var css_url = "global.css";
style_sheet.load(css_url);
news.StyleSheet = style_sheet;
loadVariables("projects_news.txt", this.news);
My css styles also isn't loadin so i temporarily am using
html styles for formatting. I'd like to get the css to work as
well.
My movie is published as Flash Player 6, AS 2.0.
I'd appreciate any helpful advice.
Thanks,
Stanton1. don't assign the stylesheet property of your textfield
until loading of global.css is complete. ie, use the onLoad handler
for stylesheets.
2. you have movieclip images that are linked for export and
you're using their linkage id in src property of the img
tag? -
Conditional display of region with PL/SQL function returning SQL query
Hello,
ApEx 2.0.
I use PL/SQL functions that return SQL queries to display the contents of a region.
How could I conditionally display such region ? If no data is found, the region shouldn't be shown. I tried with "SQL query returns at least one row" but this doesn't seem to work.
Thanks,
MatthiasHi Matthias,
Are the regions in question report regions? So your PL/SQL process is returning a SQL query and then populating a report?
The EXISTS(SQL Query returns at least one row) condition should work, try running the query you are using in the Expression 1 textarea inside SQL*Plus, or SQL developer using the same parameters, and see what gets returned.
If you are still stuck, can you post the query you are using inside your Expression 1 textarea of the Conditions section and I can take a look at it for you.
Hope this helps,
Cj -
Limit to rows displayed in a Dynamic Parameter?
Post Author: shecter
CA Forum: General
Hi,Does anyone know if there is a limit to the number of rows that can be displayed in a dynamic parameter? I have set up a parameter that needs to let the user choose from 2700 book titles A-Z. But it only show titles A-R. -MarcPost Author: SKodidine
CA Forum: General
It is limited to 1000 rows by default. Check this KBase article on how to increase the number.
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=19032644&stateId=1%200%2019034607 -
Displaying notes on Dynamic Menus in TEM
Good morning
When a note is attached to an attendee on a course in TEM, is there a way that there cam be an indicator displayed on the dynamic menus (PSV1 and PSV2) against the attendee that when you click on it, it goes directly to the note.
Many thanks
DawnHello Dawn,
You need additional development to do that.
Go and copy SAP standard function RH_MORINFO and change the resulting function acc to your requirements.
Then in the T77S0 table write down the name of your Zfunction as SEMIN MINFO value.
In standard, you can make "key", "additional info" and "abbreviation" fields visible in PSV1 and PSV2 transactions.
To customize the user view, use Change settings button - View tab.
Regards,
Dilek
Edited by: Dilek Ersoz Adak on Jan 14, 2010 1:37 PM -
Dynamic totals to be displayed in between dynamic columns
Basically my requirement is to create a report which shows the output in a excel file in the below format:
Customer Name .... Account Id ... JAN..... FEB ..... MAR ..........APR..............................DEC..............TOTAL
BARRY,CINDY........ 879166404 .... 579 ....469........654............232..............................434.........(579+469+654+232+434)
BARRY,EVELYN...... 4312031110 ... 579 ...434.......343............533.............................333.........(579+434+343+533+333)
here the months are inserted dynamically........ and i managed to get the desired output.....with totals showing at the end.
but now the user wants to see totals for every quarter...is it possible to do so - coz the months are inserted dynamically and how would i create a column for total in between for every quarter.
any help would be really appreciated.Hi srini,
I've sent an email to [email protected] with subject : Dynamic totals to be displayed in between dynamic columns.
Eagerly waiting for your response.
Thanks. -
Hi,
Is there any way I can add html regions dynamically to the page.
Depending on the number of rows returned by the refcurcor, I want to add the html regions.
Please advise.
Thanks.machan wrote:
Is there any way I can add html regions dynamically to the page.
Depending on the number of rows returned by the refcurcor, I want to add the html regions.
Please advise.It is not possible to dynamically generate <em>regions</em>—HTML or otherwise—in APEX. All regions must be created statically using the Application Builder.
It is of course possible to generate HTML <em>content</em> dynamically using predefined report, list and PL/SQL regions. -
Displaying Window Title Dynamically
Hi Gurus,
I have to display window title which is coming from T100 table. Based on the entered message number from t100 table i need to display the respective messagetext from respective messageno from T100 table.Please let me know how to display window title dynamically from table T100.
Points will be rewarded
Thanks,
KishorRather than reading from T001, you can just use the "message" verb to get the content and variable substitution done for you... so this may help:
report zlocal_jc_sdn_titlebar1.
data:
g_title type sy-ucomm.
parameter:
p_gday type sy-datum.
* Events:
initialization.
perform initialization.
at selection-screen output.
set titlebar 'MY_TITLE' with g_title. "MY_TITLE just contains &
*& Form initialization
form initialization.
message e398(00) with 'Hello' sy-uname 'today is' sy-datum
into g_title.
endform. "initialization
Jonathan -
How to use dynamic contributor region on web site
Hi,
I am having a page where it contains information and in that there is a section names description and one section names contributor details which is displayed dynamically.
Now, those two section I want to make it contribution region, which is not an issue. The problem is, since the data is getting populated in dynamic fashion, I am not sure how to use the contribution region to handle dynamic data.
Now, my requirement is, the same description and contribution details section should be a contribution region and it should handle dynamic data which the contributor can update.
let me know if any can help. Also, if you need more details just let me know.
Thanks,
AbhijitAldenBob wrote:
> Hi Mad Dog,
> After some research it seems as this will only work with
Adobe Flash or Adobe
> Flex environments. I am using flv files on my site, but
generate them with a
> video converter. My site is built with Dreamweaver CS4.
> I am stuck on how to add tags to the flv files for
Google Analytics to
> monitor. I have the site set up and monitored by Google
Analytics.
> Any more direction would be appreciated.
Google Analytics works by using a special piece of Javascript
on a web
page. When the page is served up to a client that has
Javascript
installed, it will send Google all the information that it
needs to
record that visit. If the page has an FLV file served up, it
will record
the traffic to that page. You can monitor the traffic to the
page easily
enough with Google Analytics, but dunno about how to add tags
to the
Flash player that plays the FLV file.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
Display regions dynamically on the same page
Hi
I have 2 regions.Top is an interactive editable report.Bottom region is a read only report of the same(top region)
But when i click search button(based on paramters 1&2, i am not able to see the same number of rows.
Top region shows 5..But bottom region shows not the same.
Is there any custom process i need to add ?
Please advice
thank
kp>
http://localhost
----------^^^^^^^^^
uhhh....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"namtax" <[email protected]> wrote in
message
news:ej54sr$m7q$[email protected]..
> im trying to code my tree menu so that when you click on
the album name
> the
> song names would display dynamically on the same page..
>
> Heres my page at the moment
>
>
http://localhost/music_explained/forta_explained/blah_7.cfm
>
> I have added a href field to the album section of the
cftree, so that when
> you
> click on that a question mark appears after the URL.
> I have set up a query that selects song names dependant
to the record
> which is
> clicked on the cftree...but i am having
difficulties...anyone know of a
> tutorial or anything on this particular topic.
>
> Cheers
> -
Display PL/SQL funtion output in HTML Region dynamically
I have a form/report with just 2 items (one is hidden). When I click on the displayed field, I would like the output of a function/procedure (with the form/report field as argument) to display in a region on the same form. I already have a function with varchar2 as return value and also a procedure that prints out html output through htp.p package.
But couldn't figure out how to connect the form and the region and be in sync.
I have a chemical structure data stored as CLOB in the DB with an ID. Basically, clicking on the ID should pass the CLOB to the procedure that outputs the <embed and so on tags for a plugin to display my chemical structure.
Any help/guidance is appreciated.Hi Carl,
Thanks for the post. I tried the static value and it works (structure displays). My problem is for it to pickup on the value of my field.
I could give you my login credentials on htmldb but I am not sure if that would help as you would need the plugin installed on your browser (frre version may be available at www.mdl.com and search for "chime").
I have something along these lines in procedure.
htp.p('Hello World, I am ' || :APP_USER);
htp.p('<table border=1 cellpadding=1 cellspacing=0 width=550><tr><td align=middle valign=top><font face=arial size=2>');
htp.p('<input type=hidden name="queryrxn" value = "'|| :MOLCHIME ||'">');
htp.p('<embed type=chemical/x-mdl-molfile width=300 height=100 queryformbox="document.query.queryrxn" structure='''||:MOLCHIME||'''></td></font>');
htp.p('</tr></table>');
Thanks for any input.
Sridhar -
Hide/display regions dynamically
Hi,
I am using APEX 4.0.
In my application I created 3 buttons. (Login, change password, forgot password).
I want that user see change passoword region when change password button is pressed.
Similarly with forgot password.
How can this be achieved in APEX.
In oracle forms it was as simple as (set item_property....visible ...false). Is there anything like that in APEX?.
Thanks
MunishHello Munish,
Take a look over there, I tried not to change your configurations, only added the options. Steps:
-> Editing Page -> Execute when Page Loads = $('#R11186522721897120484').hide();
This will hide the region.
-> Created a Button ( as Button Region ) -> Action = Redirect to URL -> URL Target = javascript:$('#R11186522721897120484').show();
This will show the region when click in the button.
This amount of numbers *#R11186522721897120484* is the ID of the region, you can check it on the source code.
PS: You can use javascript:$('#R11186522721897120484').toggle(); if you want that the Change button show and close the region.
Regards,
Alan Martini.
Edited by: Alan Martini on 15/04/2011 16:19 -
How do I hide the display of empty dynamic fields in a PHP query
I need help, I've spent the whole day on this, and I'm not getting any further.
I am creating a simple blog, where articles can be added via a form in dreamweaver that uploads data to a mysql database.
I have the following fields in the database:
"title", "text", "image" "link" (and datestamp)
The text, image and link fields can be left blank, so I have set their attribute to NULL, i.e. can be NULL
to display this data, I have created a page and added a recordset that reads as follows:
SELECT niklas.`date`, niklas.title, niklas.text, niklas.image, niklas.link
FROM niklas
the problem is some of the articles will only have text, some will have text and image, some only image.
When I view the page, it shows me the images that are there, but when there is no image in that particular record, the page shows a blue question mark instead.
What i want to do, is show only what is not null
I cannot use the WHERE command, as this completley omits an entire record, if the one field is empty.
Another problem I have is the link, as these are added through the form, and then stored in the mysql database, how do I display them dynamically so that they are active links to external web pages?
I'm very new to this, and rather a slow learner, so simple help is really needed!
please please help!! I'm really struggling and have deadlines fast approaching!
Thank you in advance!
xxxDetermine the condition of the data where it's displayed on the page using if/else. Here's an example for the thumbnail:
<?php
// Show IF thumbnail is NULL
if ($row_profile['thumbnail'] == "") {
?>
<img src="image_not_found.gif" alt="No Profile Image Available">
<?php
// else show the thumbnail
} else { ?>
<img src="<?php echo $row_profile['thumbnail']; ?>" alt="<?php echo $row_profile['thumbnail']; ?>">
<?php }
// end if thumbnail is present
?>
Do the same technique for any area that may or may not have data.
Create a dynamic link like this:
<a href="<?php echo $row_profile['website']; ?>"><?php echo $row_profile['thumbnail']; ?></a>
Maybe you are looking for
-
Is there any way to keep the contents of your extended display the same when you change spaces on the primary display? I often watch movies on my TFT or HDTV while working on the other screen. Unfortunately when you switch to another space, the movie
-
How do I get my pics off my phone onto my sd card
How do I get my pics of my phone over to my sd card
-
How can i control concurrent programs?
Hi When ruinning GL & OPM concurrent programs, de-grades server peformance. How can i control it? I want to restrict the user not to submit or does not run during office-hours. How can it be achieved? Regards Ariz
-
Is there a way to recover old emails? I moved a few folders around on the hard disk and now my emails have reverted to Factory settings and all my old emails and address book have vanished. I am still running on 10.4.11 and Apple can not help me. Doe
-
Photoshop Elements 13 stopped downloading to my OS 10.9.5 before completion. How do I get it to finish?