web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / グローバル変数に値が入らない
Power Apps
Unanswered

グローバル変数に値が入らない

(0) ShareShare
ReportReport
Posted on by 4

PCブラウザでのpowerappsで
Set(LanguageCode,MicrosoftTranslator.Detect(LanguageSelected).Code);

でLanguageCodeを作りたい。

If(LanguageCode="","メイン",MicrosoftTranslator.Translate("設定メニュー",LanguageCode));

アプリ編集時には動作するがアプリとして起動させるとグローバル変数に値が入らない。

 

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    Hi @Willtech ,

     

    I made a test on my side based on your code, but cannot reproduce your issue, it works well when running the app.

     

    Which property and control does the Set() code apply to?

    It seems that LanguageSelected is a variable, right? Please mention that the LanguageSelected variable must be defined before the Set(LanguageCode) function.

     

    In addition, "" means a blank string, it doesn't equal Blank, so I more suggest you change the code as follows

    If(LanguageCode=Blank(),"メイン",MicrosoftTranslator.Translate("設定メニュー",LanguageCode))

    Hope this helps.

    Sik

     

  • Willtech Profile Picture
    4 on at

    無事に解決しました。

    ただ解決したのはコレクションデータのsaveとloadを消したら上手くいきました。

    今はsave,loadを消していますが最終的にはデータの端末保存は行おうと思います。

     

    今は別の問題でコレクションに入れた人の名前をe-mailの本文にテキストで取り込めない現象を調べています。

    編集画面では問題なく表示されますがアプリ起動すると表示されない状態です。

     

    色々なテスト画面を作って調べようと思います。

    今作成中のアプリを見てもらうのが一番なのですが送り方が分かりません。

  • v-siky-msft Profile Picture
    on at

    Hi @Willtech ,

     

    Please provide more details about your scenario.

    You can share some screenshots(codes, error message), GIF or Video from web.

    Sik

  • Willtech Profile Picture
    4 on at

    別の質問です。

    客先および客先担当者のデータを作成しています。

    このデータはオーダに紐付けるようにしています。

     

    ====前提====

    エンティティでリレーションシップを作成します。

     

    (エンティティ)

    エンティティ1:会社名

    エンティティ1:従業員

     

    (リレーションシップ)

    会社名へのリレーションシップを従業員側で作成します。

    (N)従業員 - (1)会社名

     

    ====質問====

    1.従業員のギャラリーを作った時に従業員(エンティティ)の列でSerchすることはできるが、

    リレーションシップ先の列ではSerchできない。

    これによってギャラリーに表示される従業員を会社名で絞り込みたい。

     

    (ギャラリー ITEM)

    SortByColumns(Search(客先担当者,TextSearchBoxContactperson.Text,"cra1b_customerpersonname","cra1b_customerpersonmail"),"cra1b_customerpersonname",If(SortDescending1, Descending, Ascending))//客先担当者

     

    2.会社にリレーションシップされた従業員を表示したいが方法がわからない。

     

    会社1 : 従業員A,従業員B,従業員C

    会社2 : 従業員1,従業員2,従業員3,従業員4

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard