Oct 7, 2022 09:58
hi, I am still unable to figure it out
Sep 28, 2022 06:56
where to add this function ??
Sep 28, 2022 06:55
let
tdy = Date.From(DateTime.LocalNow()),
yest = Date.AddDays(tdy , - 1),
sQuery = Table.FromRecords({
[sQuery = "execute ED_DS_TRANS_DETAIL01 @DateFrom ='" & Date.ToText(yest,[Format="yyyy-MM-dd"]) & "', @DateTo = '" & Date.ToText(tdy,[Format="yyyy-MM-dd"]) & "'"
]}),
#"Invoked Custom Function" = Table.AddColumn(sQuery, "Query2", each #"Fnc Query"([sQuery]))
in
#"Invoked Custom Function"
Sep 28, 2022 06:55
now where to add the second part ?
Sep 28, 2022 06:55
Sep 28, 2022 06:54
First I have created two parameters. `dBaseIP ` and `dBase` and the in blank query I have added
let Source = (Query as text) => let Source = Sql.Database(dBaseIP, dBase , [Query=Query, CreateNavigationProperties=false])
in Source
in Source
Sep 28, 2022 06:47
should I go for blank query ?
Sep 28, 2022 06:45
and found this
Sep 28, 2022 06:45
Sep 28, 2022 06:42
Ok i have opened data source settings
Sep 27, 2022 12:53
and let
tdy = Date.From(DateTime.LocalNow()),
yest = Date.AddDays(tdy , - 1),
sQuery = Table.FromRecords({
[sQuery = "execute ED_DS_TRANS_DETAIL01 @DateFrom ='" & Date.ToText(yest,[Format="yyyy-MM-dd"]) & "', @DateTo = '" & Date.ToText(tdy,[Format="yyyy-MM-dd"]) & "'"
]}),
#"Invoked Custom Function" = Table.AddColumn(sQuery, "Query2", each #"Fnc Query"([sQuery]))
in
#"Invoked Custom Function"
Sep 27, 2022 12:53
I am confused in where to add let
Source = (Query as text) => let
Source = Sql.Database(dBaseIP, dBase , [Query=Query, CreateNavigationProperties=false])
in
Source
in
Source
Sep 27, 2022 12:40
ok let me check it
Sep 27, 2022 12:39
That's what I am asking from where in your file I can change the credentials ?
Sep 27, 2022 12:39
how did you set it ?
Sep 27, 2022 12:39
I have opened your file but didn't find any helpful material the query that you have mentioned execute ED_DS_TRANS_DETAIL01 @DateFrom ='2022-09-25', @DateTo = '2022-09-26' is already used by me. So what is the difference?
Sep 27, 2022 12:39
Yes I did also add tried to add these queries in Blank Query but it doesn't gives me any result :(
Sep 27, 2022 12:39
Kindly check my update I have tried your solution
Sep 27, 2022 12:39
ok but first I have to load the database right ??
Sep 27, 2022 12:39
So i have create the both in Power Query right ??
 
Aug 27, 2022 11:39
yes I am recompling it now
Aug 27, 2022 11:24
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>

<variable
name="quantity"
type="android.arch.lifecycle.MutableLiveData&lt;Integer&gt;" />

<variable
name="order_value"
type="android.arch.lifecycle.MutableLiveData&lt;Integer&gt;" />
</data>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Aug 27, 2022 11:23
my product layout
Aug 27, 2022 11:23
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>

<variable
name="viewmodel"
type="com.example.thumbsol.accuratesurvey.models.ViewModel" />
</data>

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
Aug 27, 2022 11:23
here is my fargment layout
Aug 27, 2022 11:20
but when I want to do newSurveyFormLayoutBinding.quantity or newSurveyFormLayoutBinding.order_value I can't find quantity and order_value
Aug 27, 2022 11:19
newSurveyFormLayoutBinding = DataBindingUtil.setContentView(getActivity(),R.layout.new_survey_form_layout);
Aug 27, 2022 11:19
Also I have initialized it like below
Aug 27, 2022 11:15
Cannot resolve constructor 'ViewModelProvider(android.app.Activity)'
Aug 27, 2022 11:15
but getting error
Aug 27, 2022 11:15
I am using ` mViewModel = new ViewModelProvider(getActivity()).get(ViewModel.class);`
Aug 27, 2022 11:05
as I have other elements also so I am having difficulty doing it
Aug 27, 2022 11:04
Ok I have done with the layouts but again I am stuck on my fragment class
Aug 27, 2022 10:55
got it
Aug 27, 2022 10:53
I am getting "Cannot resolve class data"
Aug 27, 2022 10:52
Ok but when I do something like
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/background_round"
android:padding="5sp">
<data>

<variable
name="viewmodel"
type="yourpackage.ViewModel" />
</data>
Aug 27, 2022 10:49
So I can't use <data> with constraintlayout?
Aug 27, 2022 10:34
I have also added the error line in my question. Can you please check it?
Aug 27, 2022 10:34
And I have looked into the two links that you have provided me. But I can't find what to add more in my Gradle and in my external class.
Aug 27, 2022 10:34
I am going to check it, also I have added my whole class of Fragment you can also check it
Aug 27, 2022 10:34
I did understand but I am facing issues in my Fragment Class.
Aug 27, 2022 10:34
Kindly check my Update 1
Aug 27, 2022 10:34
Can you please confirm me ?
Aug 27, 2022 10:34
There are lot of errors that need to be resolved :|
Aug 27, 2022 10:34
When I am adding mViewModel = new ViewModelProvider(getActivity()).get(ViewModel.class); in my fragment class it giving me Cannot resolve constructor 'ViewModelProvider(android.app.Activity)'
Aug 27, 2022 10:34
I am using <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/background_round" android:padding="5sp"> in both fragment and product layout
Aug 27, 2022 10:34
Also when adding <data></data> it says cannot resolve class data
Aug 27, 2022 10:34
And private FragmentBinding mBinding; giving me Cannot resolve symbol 'FragmentBinding'
Aug 27, 2022 10:34
You have added two layouts of same name ?
Aug 27, 2022 10:34
I guess second one is the fragment layout