If-else RTF

I use the following to calculate the % in my reports
<? If: not (CREDITCOUNT)? > <? (AUTORESOLVED_COUNT div sum (current - group () / CREDIT_COUNT)) * 100? > <? end if? >
<? If: CREDITCOUNT! ='' ? > <? ((AUTORESOLVED_COUNT+CREDITCOUNT) div sum (current - group () / CREDIT_COUNT)) * 100? > <? end if? >

It works fine, but when the value of AUTORESOLVED_COUNT + CREDITCOUNT is zero I get NaN.
How can I get around this?

Thank you...

Just wrap the two expressins braces and use a «and»

Tim

Tags: Business Intelligence

Similar Questions

  • text of numbers of pages (without formatting) or rtf

    I have a very full list of items in two columns that I would like to move to a page or a rtf document.

    I took the colours of the cell and the contours and seem to have been able to paste it into a rtf document that seems to behave a document strictly text (no cell spreadsheet in there). However, when I try to do it in the pages of so I can insert to start a new page, so I can format the document, it seems that it behaves like a numbers copied cell / worksheet.

    is it possible to convert it into a text document?

    None of these options export number seemed to do the trick.

    Thank you

    If all else fails, I often have to paste something I want as plain text in a new document TestEdit. BEFORE gluing make sure that it is really clear and not Rich Text... Look at drop-down menu Format and if you see make plain text, then select that... If you see doing Rich Text, then it is sure to stick. ALL formatting must go.

  • How to manage no data found in pdf format using the rtf output

    Hello

    In my rtf model, I have two frames - frame1 and frame2,

    These frameworks are based on the G1 group. Group G1 features of elements empid, empname

    My requirement is

    1. to return frame1 when the query (i.e. group G1) has given, this frame1 would print out the pdf of the report xml editor - correct work

    in the xml output, I saw that < LIST_G1 / > generates as below

    < LIST_G1 >

    < G1 >

    < EMPID > 1234 < / EMPID >

    JOHN < EMPNAME > < / EMPNAME >

    < G1 >

    < G1 >

    < EMPID > 1235 < / EMPID >

    BRAND of < EMPNAME > < / EMPNAME >

    < G1 >

    < G1 >

    < EMPID > 1236 < / EMPID >

    TONY < EMPNAME > < / EMPNAME >

    < G1 >

    < / LIST_G1 >

    2 return frame2 whenever the request (i.e. the group G1) has no data this frame2 output print pdf of the xml editor saying no report given - would not exist currently working.

    output is

    < LIST_G1 >

    < / LIST_G1 >

    (see there is no entry for < G1 > < / G1 > at all.)


    Now because of that, my frame1/frame2 who checks the value <? choose:? > <? When: County (G1). = 0 ? > out of the reutrning in the first case (as expected)

    but don't return do not all outputs in the 2nd case (his does not work as expected by me)


    Any pointers or help appreciated.


    Thanks in advance

    It solved using the IF ELSE block in the two frames, I'm back frame1 for the scenario IF count (G1) > 0 and return frame2 for another scenario.

  • RTF (reading and saving)

    Dear patients, all assistants

    My current project is "re-treatment" the FameMaker to EndNote' connection. This task includes several steps:

    1. Collect temporary citations (for example [stew, 1969, #123]) text, notes and tables in a table. This part already works very well (I had to delay further development for a year now...).
    2. Then, I write these data to a new document (which is created from the template) - with your help, this came to work today.
    3. Then this file is saved in RTF to work the bibliographic request endnote (or Citavi in another case) to resolve the temporary visas in the formatting of citations and the bibliography.
    4. After that the updated rtf is opened as a docment FM. The information of these are used to replace the temp. quotes on document/book of the user by formatting citations.
    5. The user then copy the bibliography (text only) in its appropriate chapter/section and formats to his liking.

    For step 3, I now did much research and found this:

    • App. ExportFilters does not provide a list of the filters as described in the Guide to FM script.
    • FrameScript Johannes Graubner wrote:
      SAVE the Document DocObject (docVar) leader (ofilename) FileType (SaveFmtFilter) FilterFormatID('RTF');
    • Talk on channels filetype FDK (FDK - PG) programmers Guide informed suspicion of ID format "RTF". But how to use this in eScrpt?
    • The file type indicator string syntax in FDK - PG gives some information, but which seller code must be used to RTF?
    docId = F_ApiGetId(0, FV_SessionId, FP_ActiveDoc);
    params = F_ApiGetSaveDefaultParams();
    i = F_ApiGetPropIndex(&params, FS_FileType);
    params.val[i].propVal.u.ival = FV_SaveFmtFilter;
    i = F_ApiGetPropIndex(&params, FS_SaveFileTypeHint);
    params.val[i].propVal.u.sval = F_StrCopyString((StringT)"0001ADBEHTML");
    
    • Somewhere else () channels tip for the standard installation of filters) FDK - PG says: RTF Microsoft = > 0001AW4W0191
    • Other information can be found on indication of filtering RTF 1.6 revealed! : "0001ADBIRTF"

    So my interpretation of what led to this excerpt:

    var file = app.ActiveDoc;
    SaveFileRTF (file);
    
    function SaveFileRTF (file) {    
      var params = GetSaveDefaultParams();
      var returnParamsp = new PropVals();
      var i;
      
      i = GetPropIndex (params, Constants.FS_FileType);
      params[i].propVal.ival = Constants.FV_SaveFmtFilter;
      
      i = GetPropIndex (params, FS_SaveFileTypeHint);
      params[i].propVal.ival = "0001ADBERTF ");
      
      file.Save(file.Name, params, returnParamsp);
      return;
    }
    
    

    But alas, this Signals a stange error: "expected semicolon on line 13. Even if you help me overcome this next swamp hides in step 4: how to open the RTF?

    Hello Klaus, it works for me 12 FrameMaker. Please let me know if you have any questions or comments. -Rick

    #target framemaker
    
    var doc = app.ActiveDoc;
    saveRtf (doc);
    
    function saveRtf (doc) {
    
        var saveName, saveParams, retParams, i = 0;
    
        // Get a property list to return any error messages.
        retProps = new PropVals();
    
        saveProps = GetSaveDefaultParams();
        i = GetPropIndex (saveProps, Constants.FS_FileType);
        saveProps[i].propVal.ival = Constants.FV_SaveFmtFilter;
        i = GetPropIndex (saveProps, Constants.FS_SaveFileTypeHint);
        saveProps[i].propVal.sval = "0001ADBIRTF ";
    
        saveName = doc.Name.replace (/\.[^\.]+$/, ".rtf");
    
        doc.Save (saveName, saveProps, retProps);
    
    }
    
  • Why my OA_MEDIA env variable is retrieved empty in rtf?

    Hello

    We use BEEP 11.1.1.6 (build 5.12.110) and the Oracle Applications 11.5.10.2

    In our rtf model, we use the command url and concat to display an external logo:
    <fo:external-graphic src="url('{concat('${OA_MEDIA}','/LOGO','.jpg')}')" content-height="2.31 cm" content-width="3.6 cm" />
    I'm sure that the order is correct, because he was working on another project environment.

    I check in Oracle Applications > help > review and the variable OA_MEDIA is set.
    I also tried to get its value of (but I think the command is false):
    DIR<?xdoxslt:get_variable($_XDOCTX, 'OA_MEDIA')?>
    Do you think I should put something else, I forgot something in the rtf in order to retrieve the value of the OA_MEDIA env variable?

    Thanks for your help,
    Olivier

    You have the url, and concat command code in a form field? Try the following code:

    Take a look at this post: https://blogs.oracle.com/xmlpublisher/entry/media_images_can_cause_hair_lo

    Thank you
    Bipuser

  • Insert Image into RTF model under condition

    An image can be inserted into a RTF model using an If-Then statement? Like this:

    <? If: field1 = 'IMAGE1', 'insert an IMAGE1' else 'insert an IMAGE2 "? >

    If it is possible what syntax should be where the example says "insert an IMAGE1"? The images are jpg files that exist on a local PC, but the model runs on a Unix machine.

    Is there a way to do this? Thank you very much.

    James

    You can try like this



    IMAGE1


    IMAGE2

    Use this tag where you need image

    for the location of the image or dynamic images, check out these links

    https://blogs.Oracle.com/XmlPublisher/entry/dynamic_images

    https://blogs.Oracle.com/XmlPublisher/entry/one_of_our_images_is_missing

    http://learnobi.blogspot.com/2012/08/dynamic-image-in-RTF-of-Oracle-BI.html

    Image of the signature on the model

  • Page break in RTF model

    Hello

    I have to solve some problems in a model RTF for the invoice report developed by someone else.
    The preview works fine with a page break correct for each invoice, but when the model is uploaded to the publication server Oracle XML report output is not the right page break.
    In this case, the new Bill begins in the middle of the page.

    Also the I do not understand how the page break works in preview, even when there is no code for the page break on the template (like <? split-of-page-break:? >)

    Please help me solve the problem.

    Thank you
    Yogi

    Published by: Yogi on January 25, 2013 11:45

    xml is generated data for the input you have given. the error is because if the generated XML has no data and you don't manage any data found in your model you will get this kind of error.

    try to attach the old model and example of model i gave and click view output for both models and see that you receive same error?

  • RTF export does not work in CS3

    Dear Guys,

    I am new in this field.

    With the reference of the InDesign CS3 scripting guides, I exported out of a Document InDesing TXT.

    But I can't export RTF output.

    Can someone help me on this?

    Thank you

    SaRaVaNaN.N

    I redid a little the ExportAllText.jsx script (from InDesign CS3 guide scripts package).

    Now it exports all stories in a single rtf file: C:\Exported 1.rtf

    All by running the script creates and deletes a temporary file: C:\Temporary file.txt

    if(app.documents.length != 0){
         if(app.documents.item(0).stories.length != 0){
              myExportAllText(app.documents.item(0).name);
         }
    }
    function myExportAllText(myDocumentName){
         var myStory;
         //File name for the exported text. Fill in a valid file path on your system.
         var myTempFile = new File("/c/Temporary File.txt");
         //If you want to add a separator line between stories, set myAddSeparator to true.
         var myAddSeparator = true;
         var myNewDocument = app.documents.add();
         var myDocument = app.documents.item(myDocumentName);
         var myTextFrame = myNewDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myNewDocument, myNewDocument.pages.item(0))});
         var myNewStory = myTextFrame.parentStory;
         for(myCounter = 0; myCounter < myDocument.stories.length; myCounter++){
              myStory = myDocument.stories.item(myCounter);
              //Export the story as tagged text.
              myStory.exportFile(ExportFormat.taggedText, myTempFile);
              //Import (place) the file at the end of the temporary story.
              myNewStory.insertionPoints.item(-1).place(myTempFile);
              //If the imported text did not end with a return, enter a return
              //to keep the stories from running together.
              if(myCounter != myDocument.stories.length -1){
                   if(myNewStory.characters.item(-1).contents != "\r"){
                        myNewStory.insertionPoints.item(-1).contents = "\r";
                   }
                   if(myAddSeparator == true){
                        myNewStory.insertionPoints.item(-1).contents = "----------------------------------------\r";
                   }
              }
         }
         myNewStory.exportFile(ExportFormat.RTF, File("/c/Exported Text.rtf"));
         myNewDocument.close(SaveOptions.no);
    
         try {
              myTempFile.remove();
         }
         catch(e){}
    
         alert("Done.");
    }
    
    function myGetBounds(myDocument, myPage){
         var myPageWidth = myDocument.documentPreferences.pageWidth;
         var myPageHeight = myDocument.documentPreferences.pageHeight
         if(myPage.side == PageSideOptions.leftHand){
              var myX2 = myPage.marginPreferences.left;
              var myX1 = myPage.marginPreferences.right;
         }
         else{
              var myX1 = myPage.marginPreferences.left;
              var myX2 = myPage.marginPreferences.right;
         }
         var myY1 = myPage.marginPreferences.top;
         var myX2 = myPageWidth - myX2;
         var myY2 = myPageHeight - myPage.marginPreferences.bottom;
         return [myY1, myX1, myY2, myX2];
    }
    
  • My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    Hello brooksm549,
    Thank you for using communities of Apple Support.

    I got your message which, since updating your iPhone 6 to iOS 10.0.2 your iPhone stops when it is 40% and the power to empty very quickly. I understand your concern with the iPhone turn off and drains the battery. I recommend you to review the use of the battery to see what app contributes more to the battery drain. The following article will provide you with steps on how to check the use of the battery:

    On the use of the battery on your iPhone, iPad and iPod touch

    When you know about the soft uses more battery, you can change your settings in order to optimize the battery life:

    Maximize the life of the battery and battery life

    Best regards.

  • Malwarebytes - do I need anything else (security tips)

    Hello ladies and gentlemen, Apple Support Forums!

    I have a few questions about this great little Mac Mini on my desk. Coming from a Windows background, I have a bit of inherent paranoia that needs a bit of smoothing.

    I have read about the security of the Mac, on the defences of sandbox, Gatekeeper, never install suspicious applications etc. But I guess it's always better to have a scanner installed as well. Mac simplifies the sort to choose as my old Windows, Emsisoft Anti-Malware and Superantispyware programs do not provide versions of Mac.

    Malwarebytes is one of my classmates that comes with the Mac version. And howdy to how fast it scans. O_o compared to Windows 7 minutes 30 seconds.

    Norton was even crap in Windows and Avast, I have more confidence. Avira for Mac looks nice and simple.

    So my questions are the following:

    (1) do I need anything else besides that Malwarebytes and Avira? (And common sense, I got load of Windows security vulnerabilities...)

    (2) as I understand it, Windows malicious software may enter the Mac, but they are completely powerless to do anything, just hang out? Under no circumstances can they interfere with my Mac? So as long as I scan with Malwarebytes, all bad guys he finds are for Mac and trash from potential Windows that the rest is harmless anyway?

    Thank you for any assistance you can provide!

    No reason for Aviri or another anti-virus application.

    Viruses, Trojans, Malware - and other aspects of Internet Security

    https://discussions.Apple.com/docs/doc-8573

    Effective defenses against software malware and other threats

    https://discussions.Apple.com/docs/doc-8841

    Malwarebytes is a good software to search for Adware.

    Yes, Windows malware only will infect a Mac. Only concernis than if yo al; so to run Windows on your Mac.

  • Why don't the addition of metadata to be added manually in the iTunes library song change metadata in Windows Explorer and anywhere else?

    Adding metadata to a song in the iTunes library has no effect anywhere else (as in Windows Explorer or the Groove music).

    I would like to know if I have disabled this in error or if it is not guaranteed to all visitors.

    Where it is not provided to customers, I would like to know how iTunes stores this metadata and whether it can be automatically sent to the library of Windows.

    Thank you.

    A reason of changes committed to iTunes cannot be is covered in the tip of the user, fix the iTunes for Windows security permissions but iTunes usually returns to the original data if you probably don't see this particular problem. The other possibility is of several tags.

    Several tags (Mp3 files only)

    The ID3 specification allows files to have several tags in different versions and languages, but iTunes does not work properly with simple tags. When multiple tags are present it can sometimes do not apply updates to the tag that reads back (probably update one of the others in the file) and it is also possible that the iPod and iTunes may have different rules for the tag that they give priority to. This could lead to situations where everything is properly organized in iTunes, but then inexplicably collapses on an iPod, or tracks that display different information in Windows Explorer or another media player. There are tags 3rd party editors that allow to manipulate several tags, but I don't have a casual recommendation. A workaround in iTunes is to use the context menu convert the ID3 Tags... > None a few times to remove all the labels, then convert ID3 Tags... > v2.3 to build a cool tag with information still held in the iTunes database. I've read in the past that iTunes is not completely compatible with the specification v2.4, although this may be the case, support is more however for v2.3 is widespread, then I would say using v2.3 to v2.4. All embedded work will be deleted so it must be replaced if wanted. For Windows users running a script named CreateFolderArt before and after the cleaning process tag should handle this.

    Note that some data, for example the sides and the counties of game, is only stored in the database internal iTunes and not surrounded by tags.

    TT2

  • PowerMac G4 - Boats only for the Apple Logo. Nothing else.

    Hello

    So I have a PowerMac G4... Yes old enough. Well its been all this time working and I like it a lot.

    But today, it is consumed only until the Apple logo. and nothing else happens. Ive done some methods to try to get it working again. He acknowledged that the HARD drive is there and I can select. But that's about it.

    I should also mention that I have not the keyboard or the original mouse. I have the keyboard of Windows so :/

    Shutdown

    Disconnect all external devices

    start in safe mode

    Try safe mode if your Mac does not end commissioning - Apple Support

    If you did specify that in your "I did some methods' which is without assistance, unless you can specify that only those who were.

  • Anyone else having programs crash after installation of Sierra?

    I just installed Sierra on an iMac mid-2012. A lot of programs crash after installing Sierra, of Apple's native applications. Anyone else having similar problems? All possible solutions?

    Thank you

    Hi guitarno,

    Thanks for the upgrade of your iMac to macOS Sierra! I understand that your Mac works more slowly as it did before the upgrade. You can try to start up your Mac in Mode without failure.

    What is safe mode?

    Safe mode (sometimes called secure boot) is a way to start up your Mac so that it performs certain checks and prevents certain software from loading automatically or opening. From your Mac in safe mode does the following:
    Check your startup disk and attempts to fix problems if necessary directory
    Loads needed kernel extensions only
    Prevents elements start and the login items open automatically
    Disables the user installed fonts
    Delete font caches, hiding the kernel and other files of the system cache
    Together, these changes can help resolve or isolate issues related to your startup disk.

    Try safe mode if your Mac does not end commissioning

    After successfully started upward in safe mode, check to see if you have any login or startup items. Here are the apps that run as soon as you turn on your Mac and continue to run in the background that can slow down the performance of your Mac.

    macOS Sierra: If you think you have incompatible connection points

    You can also check that your Mac has enough disk space for the smooth Sierra BONES. Under macOS Sierra, it's easier than ever to free disk space! Take a look at this link. Information System for Mac: optimization of the storage on your Mac

    Once these tasks are completed, restart your Mac normally and then test the performance. I'm sure you'll see a difference. Please use the Apple Support communities to post your question.

    Good day.

  • The fan runs all the time because xinetd running more than 80% all the time.  Someone else has the same problem?

    xinetd is running at 83% or more 24 x 7 devours battery in 2 hours or less and making the fan run all the time.  I am connected to a bug report, and it turns out that it was a duplicate because someone else had the same problem.  However, I have no access to the other bug report or find anything either in the discussion forums or online.  Anyone experience this problem?

    Hello gorgonzola1111,

    I doubt that someone else has this problem because xinetd does not part of macOS. Have you installed it from a package of "ports" 3rd party?

  • Siri thinks I'm someone else!

    Hey guys,.

    I've updated to Sierra and Siri call me now with the wrong name.

    App Store and iCloud (disabled) run under another name and when I choose my card in Contacts it shows my (good) information. So where is Siri in get Sierra denunciations of? They are adjustable via the Terminal?

    See you soon

    Have you ever found a solution? This has been driving me crazy.

    Contacts shows me properly. Stupid Sierra Siri insists on identify myself as someone else!

    Research on the Web and try different solutions have completely failed. I lost so much time to this annoying problem that I could scream!

Maybe you are looking for