openFullscreen() in Formel?
Moin,
ich habe eine Formel auf meiner Startseite, dieses ist auch eine Seite, keine Tabelle.
Auf der Seite habe ich eine Formel mit HTML, in dieser möchte ich gerne eine Registerkarte auf der Seite per onclick=, auf einen Namen gelegt, öffnen.
Vorher möchte ich die in einer Variablen let= definieren. Sobald ich die Formel dort rein schreibe, öffnet er sofort die Karte, obwohl die Formel nur in der Variablen definiert wurde, und ich den Editor nicht einmal geschlossen/gespeichert habe.
Woran kann das liegen?
Gruß
Mirko
2 Antworten
-
Kannst du das Script hier teilen? Dann können wir besser nachvollziehen, wo der Fehler liegen könnte.
-
Moin,
hier das Script:
let aufgabeBenni := cnt(select 'To Do' where 'Zuständig' = 1 and 'Erledigt am' = null); let aufgabeAxel := cnt(select 'To Do' where 'Zuständig' = 2 and 'Erledigt am' = null); let aufgabeMirko := cnt(select 'To Do' where 'Zuständig' = 3 and 'Erledigt am' = null); let aufgabeNinja := cnt(select 'To Do' where 'Zuständig' = 4 and 'Erledigt am' = null); let aufgabeAlle := cnt(select 'To Do' where 'Zuständig' = 5 and 'Erledigt am' = null); let anzahlP := cnt(select Pflegetermine where text(Kategorie) = "P" and Erledigt = false); let anzahlD := cnt(select Pflegetermine where text(Kategorie) = "D" and Erledigt = false); let anzahlN := cnt(select Pflegetermine where text(Kategorie) = "N" and Erledigt = false); let myFarbe := color(farbe_cards); let farbeAuf := (select 'To Do').color('Zuständig'); let page := (select Planung); let myRec := record(Planung,1); let css := "<style> /* Float four columns side by side */ .column1 { float: left; width: 25%; padding: 0 10px; box-sizing: border-box; } /* Remove extra left and right margins, due to padding */ .row1 {margin: 0 -5px;} /* Clear floats after the columns */ .row1:after { content: ""; display: table; clear: both; } /* Responsive columns */ @media screen and (max-width: 600px) { .column1 { width: 100%; display: block; margin-bottom: 20px; } } /* Style the counter cards */ .card2 { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); padding: 16px; text-align: center; background-color: " + myFarbe + "; border-radius: .5em; } h3.mitte{ text-align: center; margin-bottom: 5px; } .jump2:hover{ cursor:pointer; background-color: #fff; opacity: 0.5; } </style>"; let content := --- <head> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css" /> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css" /> </head> <div class="row1"> <div class="column1"> <div class="card2"> <h3 class="mitte">Aufgaben</h3> <i style='font-size: 25px; font-weight: bold;' class='ph ph-check-circle'></i> <p class='jump2' >{ "Benni: " + aufgabeBenni }</p> <p class='jump2'>{ "Axel: " + aufgabeAxel }</p> <p class='jump2'>{ "Mirko: " + aufgabeMirko }</p> <p class='jump2'>{ "Ninja: " + aufgabeNinja }</p> <p class='jump2'>{ "Alle: " + aufgabeAlle }</p> </div> </div> <div class="column1"> <div class="card2"> <h3 class="mitte">Planung</h3> <i style='font-size: 25px; font-weight: bold;' class='ph ph-list-magnifying-glass'></i> <p class='jump2'; onclick="ui.openRecord('{ record(Planung,1) }')">Heutige Planung</p> <p class='jump2'>Nächster Tag</p> </div> </div> <div class="column1"> <div class="card2"> <h3 class="mitte">Listen</h3> <p>Termine: { anzahlP }</p> <p>Dauerpflege: { anzahlD }</p> <p>Neubau: { anzahlN }</p> </div> </div> <div class="column1"> <div class="card2"> <h3 class ="mitte">Fehlzeiten</h3> <p>Some text</p> <p>Some text</p> </div> </div> </div> ---; html(css + content)Das ist der Code, wo es nicht klappt, der Code sollte in der ersten Karte bei den Aufgaben bei den jeweiligen Kollegen hinterlegt werden, so wie bei der zweiten Karte.
Der Code für öffnen der Seite Planung mittels onclick bei Heutige Planung in der zweiten Karte funktioniert auch nicht, openPage() geht gar nicht, hat da vielleicht auch noch jemand eine Idee?
Gruß Mirko
Content aside
- vor 11 StundenZuletzt aktiv
- 2Antworten
- 47Ansichten
-
3
Folge bereits
