Questions & Answers

SOLVED
nil_mon
Occasional Observer

Migration FS_LIST zu FS_INDEX

Jump to solution

Moin moin,

ich trete hier gerade etwas auf der Stelle. Ich versuche eine FS_LIST vom Typ database nach FS_INDEX zu migrieren. Diese FS_LIST wird von einem Script befรผllt.

Die FS_LIST sieht vor der Migration so aus:

    

<FS_LIST name="mediumList" hFill="yes">

        <DATASOURCE type="database" useLanguages="no">

          <ACTIONS>

            <ACTION name="REMOVE"/>

          </ACTIONS>

          <COLUMNS>

            <COLUMN show="no">#identifier</COLUMN>

            <COLUMN resizable="yes" show="yes" width="120">xyz</COLUMN>

            <COLUMN resizable="yes" show="yes" width="600">xyz</COLUMN>

          </COLUMNS>

          <LAYOUT>

            <ADD component="toolbar" constraint="top"/>

            <ADD component="overview" constraint="center"/>

            <ADD component="stackedview" constraint="hide"/>

          </LAYOUT>

          <MEDIAMODE allowFolders="yes" mediaEditor="media_ref"/>

          <TABLE>xyz</TABLE>

        </DATASOURCE>

        <LANGINFOS>

          <LANGINFO lang="*" label="Medien"/>

        </LANGINFOS>

</FS_LIST>

und nach der Migration so:

     <FS_INDEX name="mediumList" useLanguages="no">

        <LANGINFOS>

          <LANGINFO lang="*" label="Medien"/>

        </LANGINFOS>

        <SOURCE name="DatasetDataAccessPlugin">

          <TEMPLATE uid="xyz"/>

        </SOURCE>

      </FS_INDEX>

Das Script, welches die FS_LIST mit Daten befรผlltm sieht an der Stelle so aus:

mediumFormData = mediumList.getProducer().create(mediumEntity);

mediumList.add(mediumFormData);

Da ich keinen Producer habe, kann ich kein FormData mit der Entity erstellen und diese dann hinzufรผgen.

Wie ist hier der beste Weg, das Script an der Stelle umzustellen?

Beste GrรผรŸe

Nils Knudsen

1 Solution

Accepted Solutions
akyuzibr
Occasional Observer

Hallo Nils,

vielleicht hilft dir das hier weiter: Re: FS_INDEX add Dataset with FS Access API

GrรผรŸe,
Ibrahim

View solution in original post

3 Replies
akyuzibr
Occasional Observer

Hallo Nils,

vielleicht hilft dir das hier weiter: Re: FS_INDEX add Dataset with FS Access API

GrรผรŸe,
Ibrahim

nil_mon
Occasional Observer

Moin Ibrahim,

ja, ein wenig hilft mir das.

Ich habe allerdings das Problem, dass ich laut der Lรถsung dort

DataAccessSession<Dataset> dataAccessSession = gomIndex.source().createSession(context, false);

verwenden soll. Mit der Beanshell selbst ist das kein Problem. Schreibe ich diese Zeile jedoch dann in das Script selbst und fรผhre dies auf einem Media-Folder aus, bekomme ist als Rรผckmeldung, dass die Klasse DataAccessSession nicht gefunden wird.

Typed variable declaration : Class: DataAccessSession not found in namespace

Beste GrรผรŸe

Nils

0 Kudos
akyuzibr
Occasional Observer

Ist das Import vorhanden?:

import de.espirit.firstspirit.client.plugin.dataaccess.DataAccessSession;

0 Kudos

Type a product name