More/Less link to show & hide more text in a report

Hi Everyone,
Lot of my reports having description field running around close to 100 to 200 characters.
So instead of showing all the description to the users why not show only partial data like first 100 characters and then followed with a "More..." link to show the rest and change the link to "...Les".
On clicking Less it should display only 100 characters.
Can some one please throw some light on how to embed this in a report column.
Thanks,
Teku.

Hi,
Lot of my reports having description field running around close to 100 to 200 characters.So instead of showing all the description to the users why not show only partial data like first 100 characters and then followed with a "More..." link to show the rest and change the link to "...Les".
On clicking Less it should display only 100 characters.
Can some one please throw some light on how to embed this in a report column.>
Tweak your report query
SELECT ...
'<div id="less_#ROWNUM#">'||substr(Long_column,1,100)||'<a ref="javascript:$x_Show(''more_#ROWNUM#'' );
    $x_Hide(''less_#ROWNUM#'');">more...</a></div><div id="more_#ROWNUM#" style="display:none;">'||
    Long_column||'<a ref="javascript:$x_Show(''less_#ROWNUM#'' );$x_Hide(''more_#ROWNUM#'' );">
    ...less</a></div>'  LongColumn
...FROM...Replace ref with href, I had to remove the leading h to post the code snippet.
Next create a function that accepts varchar2 as input and returns the HTML fragment as shown above, say do_more_less . In all your report queries call the function , e.g.
SELECT ... , do_more_less(Long_column) LongColumn, ...Cheers,

Similar Messages

  • Show/Hide conditional text at a book level

    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana

    adrianaharper wrote:
    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana
    I don't have FrameMaker available right now, so I'm working from memory, using the traditional FrameMaker menus, rather than the FM 9 tools.
    Select all the files in the book window. With the book window active, open the View menu and look for Conditional Text. Your settings here apply to all selected files in the book window, so it's possible to set conditions on all or some files files. Ctrl+Click to select non-contiguous files; Shift+Click to select a range of contiguous files.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Is there a quick way to show/hide conditional text to create a book?

    I have a set of files that represent chapters. These will be used in two books. Is there a way to show/hide conditional text from the book file rather than going into each chapter and setting show/hide for the book I want to create?

    WIth the book file open and selected, select all the files in the book (Ctrl+A), and apply your condition settings. Update the book.

  • Making links that show/hide layers?

    Hi all,
    I created an InDesign cs4 file which is pretty much a guide for users of my liveCicle form. I have a bunch of layers in the file.
    I'm trying to make links associated with images that are in its own layers. So when i export the file to pdf and hit certain link, layer associated with that link shows up. I tryed to do this in acrobat 9 pro. I created links, but the problem is that links in non visible layers work behind the scene when i hover over.
    Is there a way to set layer visability in inDesign CS4?
    Thanks in advance

    No you can´t toggle layer visibility with buttons made in indesign. You have to finish it in Acrobat....
    Only way to make something appear or disappear in ID is to use show/hide buttons action...
    You can convert those images you want to show&hide to buttons. Then you can create another buttons to show or hide them.
    If you export as PDF, default state of a button can be hidden...

  • How can I have a button that will show/hide a text box and images on the same page?

    I have a page like below:
    I want to make so that those 3 buttons show different text under them when they are each pressed. How can I achieve this?
    Thanks.

    Hello,
    Please try using Tooltip Composition Widget to achieve that..
    You need to customize  the trigger as the button  and you can use the target to insert desired text box or images.
    you can find this in Widgets library panel > composition
    Please let me know in case you need any other clarification on that.
    Regards
    Vivek

  • Captivate: Using Javascript to show/hide text captions

    Hello,
    I want to show/hide a text caption using javascript. I can't find the way of doing it with advanced actions. I dont know if it's because it belongs to a question slide in a pool. Does somebody knows if it's possible and how it can be done??

    You can set the length of the variable when you insert it.
    15 characters is just the default setting.
    What I meant by COULD is that the kind of thing you are asking about here (using JavaScript to hide objects inside a Captivate movie at runtime) is not as simple as you'd like it to be.
    JavaScript is not my particular area of expertise, but there are some people that chime in on this forum that ARE experts at JS. But I think they would also be the first to say that it's not as simple a thing to pull off as just "knowing the command to hide/show an object".
    The easiest tool to use in Captivate for showing or hiding objects is Advanced Actions.  The next easiest thing to use is ActionScript 3, and that's hard.  JavaScript is a very useful programming language, but it spends all of its life outside the Captivate movie looking in through AS3's External Interface.  So JS alone is not going to solve all your issues.

  • Creating 3 links each with pop-up text box on the same slide

    Hi,
    I'm trying to create a slide that has 3 links and each link has a pop-up text box. I do not want to separate the pop-up text into separate slides. I have it so that there are 3 click boxes and each have the action "show" the proper text box. I also created another click box that acts as a close button where the action is to hide the pop-up box. I have an extra click box hidden on the page to make sure the user stays on the page and not automatically advance.
    Once I have the user click on the first "link" it shows the text box. Once the user clicks the close click box it takes the user to the next slide. I just need it so that it shows the user the pop-up text and then when the user closes the pop-up and returns to showing the 3 options/links. So it basically refreshes the slide instead of going to the next slide.
    Thanks,

    This will be a little tricky to achieve. This is because per default Adobe has decided that any interactive object (like a button or a click box) that has a user defined action on it (like continue, pause, open URL etc.) automatically continues to play the project when clicked.
    Therefore when you click your button it will show your textbox, but it will also continue to play on your timeline.
    You can read some more about it here: http://forums.adobe.com/thread/479725?tstart=0
    I did something similar to what you want one time and I just created a bunch of click boxes and made them very small and put them in a corner. The click boxes were placed on the timeline with 0.2 seconds between the pauses. Then I created my "real" buttons to show/hide the text boxes and placed them on the timeline before the other click boxes.
    The result is that once a user clicks your button it will show the text caption you want - continue on the timeline and pause at the first click box. When they click another button the same will happen. Just make sure that you have a lot of click boxes (I think I put like 30) and make sure that your navigation button for advancing to the next slide is set to "go to next slide" and not "continue" as that would make it pause at all your click boxes as well.
    /Michael
    Click here to visit the www.captivate4.com blog

  • Show/Hide nested subforms

    Hey all,
    Since I didn't get a response on the issue I had on post
    lisa j richards, "Save and Export Data format issue/question" #, 1 Aug 2006 8:30 am, I spent a couple days and completely recreated the form using inherent bindings which actually messes up usability of the form a bit, but what can you do?
    Anyway, since I think we'll have to go in and manually delete all the "infoOnly" type fields in the XML, I'd like to try to make it as easy as possible to find and delete that information which means limiting the subforms into one main subform (tag). One of the tags that needs to go under this subform needs the ability to show and hide. It was working before I redid the form by using setInstances() in it's own subform of the root. I now need to move it down a level.
    _subformMain.subformSub.setInstances(1); does not work.
    subformMain.subformSub.instanceManager(1); doesn't work, and
    xfa.pathTo.subformMain.subformSub...(1); doesn't work (I've tried several iterations)
    The question is this, how can I keep a parent subform visible and hide one of its child subforms by using a button (or in this case radio button fields) located in a different subform?
    Thanks!
    Lisa
    Lisa

    > Any ideas?
    Yes.
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    (Stop trying to recreate the wheel!)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RSW14" <[email protected]> wrote in message
    news:gmp4kn$7qu$[email protected]..
    >I have a navigation div with a set of navigation links in
    a linked list,
    >and
    > one of the links has sub links in a nested linked list.
    I want the nested
    > links
    > to only appear when the parent link is clicked, and then
    to hide when the
    > parent is clicked again. I currently have the links and
    nested links in
    > place
    > but don't know how to get the nested links to show/hide.
    >
    > I've shown the basic layout in the attached code.
    >
    > Any ideas?
    >
    > I was surprised to find little or no information on the
    web about this. Am
    > I
    > missing something - is this bad web design to show/hide
    nested links in a
    > navigation div?
    >

  • Acrobat Forms - javascript to hide/unhide text box if any one of a number of radio buttons is enable

    I have a form which I am designing in Acrobat 9 which has a section where there are three questions, each with a pair of radio buttons - one for 'yes' and one for 'no'. They are in the style of a check box (with a tick). I need some help to write some code which will unhide a single field (or multiple fields if I need to use something similar at a later date) if any one of the 'yes' radio buttons is checked. So if all three radio buttons were checked, the field would be hidden but if you then changed your mind and clicked a yes button, the field would be visible.
    I am new to this so any help would be greatly appreciated. Many thanks in advance! I hope that i have explained this clearly btw.

    For ease of maintenance you might want to make the above script into 2 doucment level JavaScript function. One could set a return value to the result of the caparison and the other could show/hide the text field based on the result. Then a call to the show/hide function could control the show and display of the field(s) and and a call to the function for the results of the comparison could be used anywhere else and not change the field display property.
    funciton Test3RB() {
    // set logical result based on result of test
    var bReslut = ((this.getField("rb1").value == "Y")|(this.getField("rb2").value == "Y") |(this.getField("rb3").value == "Y"));
    return bResult; // return value of logical test
    } // end funciton
    function ShowText() {
    // assume field not to be shown
    this.getField("textbox").display=display.hidden;
    if (Test3RB() ) {
    this.getField("textbox").display=display.visible;
    } // end if true
    return;
    } // end ShowText function
    You mouse up action for each button could be:
    ShowText();
    And if you could test the logical value returned by the function somewhere else and did not want to modify the display field:
    if(Test3RB() ){
    // action for true
    } else {
    // action for false

  • Show/Hide a column in a Table region

    I have search page which queries the data and displays the records in a table region. We need to have an option to show or hide a non-database column at the end of the each row in the table. If the checkbox is selected, the last column should appear and if checkbox is deselected it should get disappeared.
    I have used a transient attribute in the VO and using that transient attribute trying to show the text field when the checkbox is selected. For ex, if the search returns 6 rows - if you select the checkbox of the first row , the last column "CTS" gets displayed without any issues but if you select the other rows (without checking the first row), the CTS column is not displayed.
    The column is getting displayed only IF you select the checkbox of the first row and try it other rows. If you try to select the checkbox of other rows without selecting the 1st row, it doesnt show the CTS column.
    AM has the PPR event
    =============
    public void CheckOnClick(String v_chkBox,String SalesContact,Boolean executeQuery)
    System.out.println("Enters Checkbox event()");
    USSContactMainVOImpl pVO= getUSSContactMainVO1();
    Row poRow[]=pVO.getFilteredRows("Chkbox","Y"); // get all the selected rows
    for(int i=0;i<poRow.length;i++ )
    Row rowi=poRow;
    System.out.println("Value:" + rowi.getAttribute("Chkbox") );
    rowi.setAttribute("CTSEngineer_TR",Boolean.TRUE); // transient attr
    //end of CheckOnClick()

    I just referred to the Dev Guide and understand that we can use the identifier of the PPR event source row (Page 262) but still the issue persists.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    I have a rawtext as the first column( its just a dummy column since the PPR event is not getting fired if the checkbox is the 1st control/column) and the 2nd column is the check box which has a PPR event. The PPR event fires whenever the check box is selected or deselected but surprising the text field gets editable only if the 1st row is clicked.
    Changed code is as always - not sure why the table shows/hides the text column only if the 1st column is selected. Will appreciate any help.
    PFR:
    ===
    if ("OnSelect".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    System.out.println("The AM name is "+am);
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    String str1 = pageContext.getParameter("Check_Box");
    String v_SalesContact = pageContext.getParameter("SalesContact_qry");
    //1401
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = {str1,v_SalesContact,rowReference,executeQuery };//1401
    Class[] paramTypes = { String.class,String.class,String.class,Boolean.class };//1401
    am.invokeMethod("CheckOnClick",parameters,paramTypes);
    AM(PPR Event)
    ==========
    public void CheckOnClick(String v_chkBox,String SalesContact,String rowReference,Boolean executeQuery)
    OARow rowx = (OARow)findRowByRef(rowReference);
    if (rowx !=null){
    System.out.println("row ref");
    System.out.println("reo fref"+ rowx.getAttribute("CTSEngineer_TR") );
    rowx.setAttribute("CTSEngineer_TR",Boolean.TRUE);
    Edited by: MyOAF on Jan 14, 2010 6:25 AM
    Edited by: MyOAF on Jan 14, 2010 6:26 AM

  • FM12: Show/Hide condition does not apply to entire book

    FM12: From the Show/Hide Conditional Text pod, Show as per Condition applied to entire book does not consistently update book with correct condition. Now to get the desired condition, I have to apply the condition per section in the book. Has the workflow for this feature changed with FM12? Or is it a bug? Thanks, Patti

    > ... I have to apply the condition per section in the book.
    No, you don't. You can apply it to all component files in one operation. In the Book menu, select all component files.
    View > Show/Hide Conditional Text
    {edit}
    [ Set ]
    As Arnis pointed out, you do need to Update the book for complete re-application of Conditions.
    Edit > Update Book
    {select all possibly excluding Apply Master Page}
    In particular, any Cross-References to conditionalized text will still be as they were until xrefs are updated.
    We exclude AMP from Update because it is unstable in FM7, and run it as a separate operation, and re-Update book after that because pagination may have changed.

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • Did you know how to link the text in two or more text boxes?

    Did anyone know how to link the text in two or more text boxes in Pages 5.0? Thanks for your answer.
    Qualcuno sa come collegare il testo in due o più caselle di testo nella versione 5.0 di Pages. Grazie per le vostre risposte.

    It's just one of the many, many features that have been eliminated or changed. Leave feedback for the Pages team using the link in the Pages menu and review & rate the new versions in the Mac App Store.
    If you previously had iWork '09, those apps are still in your Applications folder in a folder named iWork '09. You can continue to use them to get things done.

  • Show more text on the featured question box

    I made some featured questions for the Power BI site using Power BI Q&A but I can't get the box (small or large) to show the whole text.  It is truncated before the where clause which is the important part to see when choosing which featured
    question you would like to see!  Is there a way to get it to display the whole text, or would I have to make my own way of displaying the options, then add the functionality by using the link instead?

    I did find a way to put the "where clause" a little higher in the text.
    Instead of:
    Show community, total unique members, where community category is Technical
    I phrased it this way:
    Show Technical community category, community, total unique members
    and the bold is what shows on the featured question tile on the main page.

  • How to show/hide a link column in a report, depending on another column?

    Sorry, thread duplicated.
    Edited by: Andres Vilallave on 14-may-2010 15:31

    Hello,
    I had a situation similar to this. I had NULL selected in the column when I wanted to hide the link. Please find below more explenation:-
    <b>example report </b>
    Interactive Report
    Col1     col2     col3
    1          a1       a2
    2          b1       b2
    -           c1       c2
    -           d1       d2
    -------------------------------------------In the above Report <b><i>col1</i></b> is a link . Upon clicking this, user should will be directed to Page XX
    so, when data in col2 of report is c1 or d1[can be a different display condition, you may want to implement this with CASE or anyother SQL construct] , I selected NULL which will not show the link.
    so, my point is, if the SQL you have in the INTERACTIVE REPORT is creative enough to have NULL in the column, Link is not enabled.
    Hope I got your problem correct.
    Thanks,
    Chaitu.

Maybe you are looking for