Forum Replies Created

Page 1 of 15
  • Isaac Harned

    Member
    February 21, 2025 at 5:55 pm in reply to: Search for Text with Regex?
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Wow, looks like I missed the party on this one, lol I think my notifications are broken. Very sorry to see there is no functionality on this. Haven’t had any use quite yet myself, but would help as I start to get more into Commissioning. They have definitely been talking of Javascript enhancements for a while, so I am hopeful that its just around the corner, may be a focus of the conference if I’m reading the room right.

  • Isaac Harned

    Member
    October 1, 2024 at 5:46 pm in reply to: UGH, printing is more broken now than ever
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    So the stapler issue has been around since 21.0.3.0, and I have been in touch with support since the day it came out. In the attached files, EAB-1 was processed prior to 21.0.3.0 and processed as
    expected. Since the layer print setting were set to “Use Default”,
    all inactive layers were not printed. The second print was processed after the
    21.0.3.0 update, and printed all layers even if they were inactive, and had the
    same layer settings as previous.

    The main issue for this update is that my work around for this was to Print to PDF using the normal print dialogue. I would select Print as Image (vector and grid would make the layers print or weird inconsistencies in the quality across the page). Before the 21.3 update, after using the print function from the normal Ctrl+p dialogue, a stapler window would pop up, with selections for “Application” and “Page Rotation”. These options no longer appear in the latest 21.3 update, and no matter what orientation I select or what rotation (Auto 90 and Auto -90 both tried) options I select in the print window, my pages process as portrait. The stapler options used to fix this by selecting Autorotate.

    Forms were created in Revu.

    Long story short, I used to just be able to select these forms in the explorer and right click send to stapler, flatten and print very crisp all at once. Now it’s a 3 step process and not very intuitive. Trying to get the guys in my department used to a new workflow and it keeps changing, very frustrating.

  • Isaac Harned

    Member
    September 27, 2024 at 10:51 am in reply to: I’m not a Coder
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    OK, modified the code so that you can pass the field name and group in the function call, this will make it work for any dropdown that you want to grab from whichever group needed. This will need to be placed in the dropdowns up top where you are selecting the group teams. I did have to rename the field on the bottom, I think the colon in the previous name was giving me issues. Here is a couple of snapshots showing my locations and the file back with the first couple of groups loaded and set. 49rs still not working. I may have to get it to pass something different without numbers so the code knows what to do.

  • Isaac Harned

    Member
    September 10, 2024 at 6:31 pm in reply to: I’m not a Coder
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Here is a simple sample for locking a form field, but I assume you will want some kind of password system, we’ll work on that:

    var field = this.getField(“fieldName”);

    if (field != null) {

    field.readonly = true;

    }

  • Isaac Harned

    Member
    September 10, 2024 at 6:21 pm in reply to: I’m not a Coder
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Ok, you were on the right track, and I see you are using Chat GPT, which will help. Most of the issue I think was that you need to populate the actual field names instead of jsut “dropdown 1” etc. Here is the conversation I am having with chat. I have most values populating into the list, except for 49rs, which is giving me some issues. Will follow up later as well as a way to lock the fields and submit via email. more than likely can get it done:

    Also, make sure that “1:” through “6:” are already built as dropdowns. The call for “populateDropdown();” should be in every “Group” dropdown as an action, I prefer on mouse blur, that way it works universally on any system including iPad, but up to you.

    https://chatgpt.com/share/2b41d812-6299-49d8-a417-bd6ce87f4a5f

  • Isaac Harned

    Member
    September 10, 2024 at 9:26 am in reply to: I’m not a Coder
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    I’m don’t consider myself expert, but may be able to help

  • Isaac Harned

    Member
    September 6, 2024 at 1:33 pm in reply to: Working with Blue Beam in One Drive / Sharepoint
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    I am curious Doug, on PDF usage on sharepoint in relation to storage. You have some massive PDF’s, does your storage balloon with the versioning?

  • Isaac Harned

    Member
    August 25, 2024 at 11:03 pm in reply to: Retrieving file name?
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Played with this a little more, sorry, haven’t messed with stamps before, it should use an event callout that way it knows which file it’s looking at. Here is an example of the basic submittal approval stamp that’s built in to Revu, but modified to pull that File name. Check out the “getProjectNoFromDocName();” callout and function at the end. Let me know if this works, and if more issues, we may have to see the specific stamp file to help.

    var builder =

    {

    // These map to Text Fields in the Stamp

    textBoxes :

    [

    { field: “Other – Description”, description: “Other – Description:”, default: function() { return “”; } },

    { field: “CheckedBy”, description: “Checked by:”, default: function() { return Collab.user; } },

    { field: “Date”, description: “Date:”, default: function()

    {

    var curDate = new Date();

    return (curDate.getMonth() + 1) + “/” + curDate.getDate() + “/” + curDate.getFullYear();

    }

    },

    { field: “Submittal”, description: “Submittal #:”, default: function() { return event.source.source.documentFileName; } },

    { field: “Project”, description: “Project:”, default: function() { return getProjectNoFromDocName(); } }

    ],

    // This maps to a Radio Group in the PDF named ‘Type of Submittal’

    radioGroup : “Document Type”,

    radioButtons :

    [

    // value maps to the ‘Choice’ of each radio button in the group, description will show on the dialog

    { value: “SubmittalForApproval”, description: “Submittal For Approval” },

    { value: “Resubmittal”, description: “Re-Submittal For Approval” }

    ],

    checkBoxes :

    [

    { field: “Approved” },

    { field: “Rejected” },

    { field: “Revise” },

    { field: “Not Reviewed” },

    { field: “Other” }

    ]

    };

    function getProjectNoFromDocName() {

    var docName = event.source.source.documentFileName; // Access the document name correctly

    return docName.slice(0, 4); // Grab the first four characters

    }

  • Isaac Harned

    Member
    August 23, 2024 at 1:42 pm in reply to: Retrieving file name?
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    var name = this.documentFileName;

    this.getField(“fieldname“).value = name;

    Alternatively if it needs to be split into multiple outputs it might look something like:

    var name = this.documentFileName;

    var parts = name.replace(“.pdf”, “”).split(“_”);

    var projectNum = parts[0];

    var projectName = parts[1];

    this.getField(“ProjectNo”).value = projectNum;

    this.getField(“ProjName”).value = projectName;

    This of course is if you are using the same identifier to split the Number and name in the doc title, i.e. “_” in this case

    Hopefully this helps, let me know if you have anything else!

  • Isaac Harned

    Member
    September 12, 2024 at 4:56 pm in reply to: I’m not a Coder
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    The large chunk of the code will be global, under “Tools/Form/JavaScript”. Then you should place the “populateDropdown();” in the Properties/Actions of each “Group” dropdown. As far as the locking for form fields, it should be it’s own button. The locking code will need some tuning, probably a Regular expression to find all the fields that start with “Group”. GPT can help you sort that out. I haven’t been able to come back to this yet, but the print and email may be a little bit difficult with normal javascript as there is not yet a way to call out to other programs for actions like that as far as I can tell. But, if everyone is using bluebeam it can be simple to add a “Script” (different from JavaScript, these are kind of like bluebeam macros, the Script Reference doc on BB website relates specifically to these, and you can find them under “Document/Scripts”). Specifically there is a pre-built “Flatten and Print” button you can add to your toolbar that can automate this and pull up the email with attachment already created.

  • Isaac Harned

    Member
    September 9, 2024 at 3:33 pm in reply to: Working with Blue Beam in One Drive / Sharepoint
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Copy, I am also looking into the permission capabilities of sharepoint itself to set the PDF’s to a check in check out system. Technically the permissions would have to be set per folder, but as I understand it, Power Automate can handle the heavy lifting.

  • Isaac Harned

    Member
    September 6, 2024 at 5:08 pm in reply to: Working with Blue Beam in One Drive / Sharepoint
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Thank you, that helps alot, we are slowly transitioning, and talks have turned to moving our entire server, makes me nervous

  • Isaac Harned

    Member
    August 27, 2024 at 8:20 am in reply to: Retrieving file name?
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    No worries, I’m glad it worked out! Not to make myself look like a loser but a lot of my answers come from GPT 🤣 If you guys ever struggle with this, just ask it questions based on “Adobe PDF JavaScript”. There are a few methods that don’t work in Revu, but with a little troubleshooting and back and forth with the bot, but that usually gets me pretty close to what I need.

  • Isaac Harned

    Member
    August 5, 2024 at 4:17 pm in reply to: getAnnots?
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    I would agree here, plenty you can do with a CSV file, but without the getAnnots method, your scripts will never even see the markups.

  • Isaac Harned

    Member
    July 23, 2024 at 8:31 am in reply to: Custom Summary Letterhead
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    The script route would only work if they fixed the arguments for it so that it can reference specific pages. I think the defaults might be your only option, and it would be a two step manual process.

Page 1 of 15