Announcement

Collapse
No announcement yet.

BC in web application with multiple regex

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • BC in web application with multiple regex

    Hi,

    I want to use BC in my web application for text file comparison as well as Multiple Regex input filter from user side.

    So I have few queries related to that.
    1. Is it ok to use BC for web application and third party?
    2. Can we support multiple regex input from user and at the same time all given regex can be apply to the files?
    3. It will provide all features which are available in windows application of BC?

  • #2
    If your server is generating a report, and then users can see that report via a web page, that can be a single license for that server.

    1) If you can email into support@scootersoftware.com with the specific server setup, and how third party tools work with it, we can make sure you are within license. Please include a link back to this forum thread for our reference.

    2) The Folder Compare uses File Name Filters (dos masking) to include or exclude files. The Text Compare supports Regular Expressions for unimportance definitions. Which view are you using?

    3) How would you provide the full feature set of the graphical interface in a web browser? This doesn't sound like a simple report generation.
    Aaron P Scooter Software

    Comment


    • #3
      Hi,

      Already we are using it for report purpose and we have licence for the same of BC.

      Now the question is how we can support or pass multiple regex to BC.exe.

      Another question from my previous post is whatever features are there in Desktop application, Can we access those all in Web? Not directly but with the help of command line and we provide User interface by our own once report is generated.


      Br,
      Bhavik Y. Shah

      Comment


      • #4
        It isn't possible to define regex for unimportant text from the command line or in scripting. It is only possible to define unimportant text interactively.

        Many Beyond Compare features are available from the command line using built-in scripting support, but not all features.

        The following links might be helpful:

        Using Beyond Compare with Scripts: https://www.scootersoftware.com/v4he...l?scripts.html
        Scripting Command Reference: https://www.scootersoftware.com/v4he...reference.html
        Scripting Forum: https://www.scootersoftware.com/vbul...p?47-Scripting
        Chris K Scooter Software

        Comment


        • #5
          Hi,

          Thanks for the links, We have already gone thru this links.

          Now we are using "BCCompare.exe" to call from command line in our Web Application.

          Question is How we can pass user defined "regex" while calling for comparison.

          Right now we are injecting changes in BCSession.xml file before calling command line.
          But in result file we are not able to see regex applied changes

          Note: We are using it for file comparison only.

          Please help for that issue.

          Br,
          Bhavik Y. Shah

          Comment


          • #6
            It looks like your colleague is also discussing the same issue in a separate forum thread:
            https://www.scootersoftware.com/vbul...t-up-by-Script

            Here's my suggestion from the other thread:
            In scripts, you'll need to either load a saved session or change the default session settings interactively for them to apply to the script. When defining the unimportant text interactively, change the dropdown at the bottom of the dialog from Use for this view only to Also update session defaults before you click OK. After you've applied the session settings to the default Text Compare session, it should affect your script.
            Chris K Scooter Software

            Comment


            • #7
              Hi,

              Thanks for the help and support Chris and Aaron.
              We got the exact point where we need to make changes.

              Now we have two questions

              1. As you mentioned we need to make change dropdown value from "User for this view only" to "Also update session default" before we click ok. So when we host application to IIS do we need to make it manually or we can directly make change in BCSession.xml file using programming technique.

              2. Solution works fine for Regex implementation with our Console application and Web application but As soon as we have hosted web application to IIS, not able to get Regex defined result. So do we need to give extra permission or anything else to make it work with IIS.

              Br,
              Bhavik Y. Shah

              Comment


              • #8
                1. You should be able to change BCSessions.xml to deploy the edited default session settings.

                2. We haven't tested running Beyond Compare scripts from IIS.

                If you're deploying user settings per-user in "%appdata%\scooter software\beyond compare 4", it might be helpful to verify IIS populates the %appdata% variable and allows access to that folder. If not, it might be helpful to select Create portable install when installing Beyond Compare so program settings are stored in the same folder as the application executable.
                Chris K Scooter Software

                Comment

                Working...
                X