• Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Bablosoft

how to parse list from database

Scheduled Pinned Locked Moved Support
1 Posts 1 Posters 472 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bunnz
    wrote on last edited by
    #1

    I am taking my database to my list in browser automation Studio but I'm facing a problem that it also has the row ID which I don't want I want to parse it so that is removed how we can do with the normal string

    anyone any clue why this javascript is giving syntax error if? and also there is a proper documentary for the JavaScript that works with browser automation Studio please link it to me as well

    function removeLastColumnsFromList(inputList, columnsToRemove) {
      const outputList = inputList.map(inputString => {
        const parts = inputString.split(':');
        if (parts.length < columnsToRemove) {
          return inputString; // Return the original string if there are fewer columns than requested to remove.
        }
        
        return parts.slice(0, parts.length - columnsToRemove).join(':');
      });
    
      return outputList;
    }
    
    // Example usage:
    const inputList = [
      "randomstring:randomstring:randomstring:randomstring:randomstring:randomstring:randomstring:randomstring",
      "example1:example2:example3:example4:example5:example6",
      "abc:def:ghi:jkl",
    ];
    const columnsToRemove = 2;
    
    const outputList = removeLastColumnsFromList(inputList, columnsToRemove);
    var [[colist]] = outputList;
    
    
    1 Reply Last reply
    0

  • B

    Read File To List and If Match File Text&URL Text click url?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    1285 Views
    No one has replied
  • I

    Create a message from randomized rows from 4 lists

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    502 Views
    No one has replied
  • Y

    Does googledrive upload, also uploads database structure and data?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    675 Views
    No one has replied
  • Y

    Deleting not needed databases and backing up main database?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    899 Views
    No one has replied
  • Y

    change database location?

    Scheduled Pinned Locked Moved Support
    1 Votes
    1 Posts
    948 Views
    No one has replied
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
  • Login

  • Don't have an account? Register

  • Login or register to search.