Upgrade to Pro — share decks privately, control downloads, hide ads and more …

New in v19 R Releases Part 4

New in v19 R Releases Part 4

4D Japan

April 10, 2023
Tweet

More Decks by 4D Japan

Other Decks in Technology

Transcript

  1. W E B I N A R W E E

    K 4 4D v19 R Release
  2. ORDA - RESTϦΫΤετͷίϯςΩετΛ؅ཧ ίϯςΩετΛ໌ࣔతʹखಈͰࢦఆՄೳʹʂ setRemoteContextInfo // ϦϞʔτσʔλετΞΛ։࢝ Form.myDS:=Open datastore(New object("hostname";

    "www.myserver.com"); "myDS") // ίϯςΩετΛखಈͰઃఆ Form.context1:=New object("context"; "simpleList") Form.myDS.setRemoteContextInfo("simpleList"; Form.myDS.People; "fullName") // ΤϯςΟςΟηϨΫγϣϯΛऔಘ Form.dataSource:=Form.myDS.People.all(Form.context1) simpleListίϯςΩετͰ͸ PeopleσʔλΫϥεͷ fullNameଐੑͷΈ࢖༻ɺͱࢦఆ
  3. var $ds : 4D.DataStoreImplementation $ds:=Open datastore(New object("hostname"; "www.myserver.com"); "myDS") $ds.setRemoteContextInfo("recentData";

    $ds.Sales;\ "Timestamp, amount,total, salesPerson.name"; "main"; 30) ORDA - RESTϦΫΤετͷίϯςΩετΛ؅ཧ ίϯςΩετΛ໌ࣔతʹखಈͰࢦఆՄೳʹʂ setRemoteContextInfo recentDataίϯςΩετͰ͸ SalesσʔλΫϥε͔Β ͜ΕΒͷଐੑΛ30݅ͷΈ࢖༻ɺͱࢦఆ
  4. ORDA - ܭࢉଐੑʹ͍ͭͯ Class extends Entity Function get fullName()->$result :

    Text $result:=This.lastname+" "+This.firstname get • ஋Λऔಘ͢ΔͨΊͷܭࢉଐੑ • ܭࢉଐੑΛ࢖༻࢝͠ΊΔͨΊͷτϦΨʔͰ΋͋Δ
 ݴ͍׵͑Δͱɺܭࢉଐੑʹ͓͍ͯgetͷ࢖༻͸ඞਢ
  5. ORDA - ܭࢉଐੑʹ͍ͭͯ query / orderBy • ܭࢉଐੑʹର͢ΔΫΤϦ/ιʔτ͸ΤϯςΟςΟ͝ͱʹ
 ຖճܭࢉ͕ߦΘΕΔ •

    ܭࢉଐੑ͸͍Θ͹شൃੑͷଐੑɺΠϯσοΫε͸ͳ͍ • $event ΦϒδΣΫτΛड͚औͬͯ؅ཧ͢Δ Function query age($event : Object)->$result : Object Function orderBy age($event : Object)
  6. ORDA - ܭࢉଐੑʹ͍ͭͯ • ܭࢉଐੑ͸ORDAಛ༗ͷ΋ͷͰ͸ͳ͘ɺ
 ϢʔβʔΫϥεͰ΋࢖༻Ͱ͖Δʂ • ϑΟʔϧυΛແବʹ૿΍͢͜ͱͳ͘
 σʔλͷ৘ใྔΛ૿΍͢͜ͱ͕Ͱ͖Δ •

    ஀ੜ೔͔Βݩ߸/࿨ྐྵΛܭࢉɺৗʹਖ਼͍͠೥ྸΛܭࢉɺ
 ࠓ݄ͷച্/௚ۙ90೔ͷച্ͳͲ΋ܭࢉͰ༰қʹऔಘՄೳ
  7. This.data ORDA - ORDAͱ4D Write Pro WP SET DATA CONTEXT

    Write ProυΩϡϝϯτ ΁ͷࠩ͠ࠐΈҹ࡮͕Մೳʹʂ